Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KevDevSha authored May 17, 2024
1 parent 413f19b commit 390f3e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ RUN if [ -n "$CUDA_VERSION" ]; then \

# update repository keys
# https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
RUN if [ -n "$CUDA_VERSION" ] ; then \
RUN if [ -n "$CUDA_VERSION" ]; then \
LINUX_DISTRO_VERSION="${LINUX_DISTRO_VERSION//./}" && \
rm -f /etc/apt/sources.list.d/cuda.list && \
rm -f /etc/apt/sources.list.d/nvidia-ml.list && \
Expand All @@ -100,9 +100,10 @@ RUN if [ -n "$CUDA_VERSION" ] ; then \
wget -P /tmp/cuda-keyring https://developer.download.nvidia.com/compute/cuda/repos/${LINUX_DISTRO}${LINUX_DISTRO_VERSION}/x86_64/cuda-keyring_1.0-1_all.deb; \
else \
wget -P /tmp/cuda-keyring https://developer.download.nvidia.com/compute/cuda/repos/${LINUX_DISTRO}${LINUX_DISTRO_VERSION}/arm64/cuda-keyring_1.0-1_all.deb; \
fi \
fi && \
dpkg -i /tmp/cuda-keyring/cuda-keyring_1.0-1_all.deb && \
rm -rf /tmp/cuda-keyring; \
fi/tmp/cuda-keyring ; \
fi


Expand Down

0 comments on commit 390f3e5

Please sign in to comment.