Skip to content

Commit 54334a1

Browse files
authored
Merge pull request #228 from cdesiniotis/use-base-image-from-nvcr
Use CUDA base images from nvcr.io
2 parents a72ff2a + 87c4307 commit 54334a1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

deployments/container/Dockerfile.ubi8

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved.
1+
# Copyright (c) 2019-2025, NVIDIA CORPORATION. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@ ARG GOLANG_VERSION=1.23.1
1616
ARG CUDA_IMAGE=cuda
1717
ARG CUDA_VERSION=11.8.0
1818
ARG BASE_DIST=ubi8
19-
FROM --platform=${TARGETARCH} nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build
19+
FROM --platform=${TARGETARCH} nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build
2020

2121
RUN yum install -y \
2222
wget make git gcc \
@@ -39,7 +39,7 @@ ARG VERSION="N/A"
3939
ARG GIT_COMMIT="unknown"
4040
RUN make PREFIX=/artifacts cmds
4141

42-
FROM nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST}
42+
FROM nvcr.io/nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST}
4343

4444
ENV NVIDIA_DISABLE_REQUIRE="true"
4545
ENV NVIDIA_VISIBLE_DEVICES=all

deployments/container/Dockerfile.ubuntu

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved.
1+
# Copyright (c) 2019-2025, NVIDIA CORPORATION. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@ ARG GOLANG_VERSION=1.23.1
1616
ARG CUDA_IMAGE=cuda
1717
ARG CUDA_VERSION=11.8.0
1818
ARG BASE_DIST=ubuntu20.04
19-
FROM --platform=${BUILDOS}/amd64 nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build
19+
FROM --platform=${BUILDOS}/amd64 nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build
2020

2121
RUN apt-get update && \
2222
apt-get install -y wget make git gcc-aarch64-linux-gnu gcc \
@@ -44,7 +44,7 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
4444
fi && \
4545
make CC=${cc} GOARCH=${TARGETARCH} PREFIX=/artifacts cmds
4646

47-
FROM nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST}
47+
FROM nvcr.io/nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST}
4848

4949
ENV NVIDIA_DISABLE_REQUIRE="true"
5050
ENV NVIDIA_VISIBLE_DEVICES=all

0 commit comments

Comments
 (0)