diff --git a/docker/Dockerfile b/docker/Dockerfile index 767cdaf2cd..46190ecbc8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 && \ @@ -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