File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1- FROM nvcr.io/nvidia/cuda:13.0.0-base-ubuntu24.04 as build
1+ ARG BASE_IMAGE=ubuntu:noble-20250716
2+
3+ FROM ${BASE_IMAGE} as build
24
35ARG TARGETARCH
46ARG GOLANG_VERSION
@@ -34,7 +36,7 @@ RUN git clone https://github.com/NVIDIA/gpu-driver-container driver && \
3436 go build -o vgpu-util && \
3537 mv vgpu-util /work
3638
37- FROM nvcr.io/nvidia/cuda:13.0.0-base-ubuntu24.04
39+ FROM ${BASE_IMAGE}
3840
3941SHELL ["/bin/bash" , "-c" ]
4042
@@ -88,10 +90,4 @@ RUN if [ -n "${CVE_UPDATES}" ]; then \
8890 rm -rf /var/lib/apt/lists/*; \
8991 fi
9092
91- # Remove cuda repository to avoid GPG errors
92- RUN rm -f /etc/apt/sources.list.d/cuda*
93-
94- # Add NGC DL license from the CUDA image
95- RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE
96-
9793ENTRYPOINT ["nvidia-driver" , "init" ]
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ dep_install () {
1717 curl \
1818 kmod \
1919 file \
20+ gnupg \
2021 libelf-dev \
2122 libglvnd-dev \
2223 pkg-config && \
@@ -29,17 +30,14 @@ dep_install () {
2930 curl \
3031 kmod \
3132 file \
33+ gnupg \
3234 libelf-dev \
3335 libglvnd-dev && \
3436 rm -rf /var/lib/apt/lists/*
3537 fi
3638}
3739
3840setup_cuda_repo () {
39- # Remove any existing CUDA GPG keys that are unconditionally trusted by apt
40- apt-key del 3bf863cc
41- rm /etc/apt/sources.list.d/cuda.list
42-
4341 # Fetch public CUDA GPG key and configure apt to only use this key when downloading CUDA packages
4442 OS_ARCH=${TARGETARCH/ amd64/ x86_64} && OS_ARCH=${OS_ARCH/ arm64/ sbsa} ;
4543 curl -fSsL " https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/${OS_ARCH} /cuda-keyring_1.1-1_all.deb" -o cuda-keyring_1.1-1_all.deb
You can’t perform that action at this time.
0 commit comments