Update Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
FROM nvidia/cuda:12.3.2-cudnn9-runtime-ubuntu22.04
|
2 |
|
3 |
# Set environment variables
|
@@ -46,6 +47,17 @@ RUN apt-get update && apt-get install -y \
|
|
46 |
&& update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip 1 \
|
47 |
&& apt-get clean
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
# Switch back to the user
|
50 |
USER user
|
51 |
|
|
|
1 |
+
# Use the NVIDIA CUDA runtime as a base image for CUDA 12.3
|
2 |
FROM nvidia/cuda:12.3.2-cudnn9-runtime-ubuntu22.04
|
3 |
|
4 |
# Set environment variables
|
|
|
47 |
&& update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip 1 \
|
48 |
&& apt-get clean
|
49 |
|
50 |
+
# Install CuDNN 9.3.0
|
51 |
+
RUN apt-get update && apt-get install -y \
|
52 |
+
wget \
|
53 |
+
&& wget https://developer.download.nvidia.com/compute/cudnn/9.3.0/local_installers/cudnn-local-repo-ubuntu2204-9.3.0_1.0-1_amd64.deb \
|
54 |
+
&& dpkg -i cudnn-local-repo-ubuntu2204-9.3.0_1.0-1_amd64.deb \
|
55 |
+
&& apt-key add /var/cudnn-local-repo-*/7fa2af80.pub \
|
56 |
+
&& apt-get update \
|
57 |
+
&& apt-get clean \
|
58 |
+
&& rm -rf /var/cudnn-local-repo-* \
|
59 |
+
&& rm cudnn-local-repo-ubuntu2204-9.3.0_1.0-1_amd64.deb
|
60 |
+
|
61 |
# Switch back to the user
|
62 |
USER user
|
63 |
|