Update Dockerfile
Browse files- Dockerfile +5 -15
Dockerfile
CHANGED
|
@@ -47,21 +47,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 47 |
&& curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub | gpg --batch --yes --dearmor -o /usr/share/keyrings/cuda-archive-keyring.gpg && \
|
| 48 |
echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /" > /etc/apt/sources.list.d/cuda.list && \
|
| 49 |
apt-get update && apt-get install -y \
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
# Download and install CuDNN 9.3.0 manually
|
| 55 |
-
RUN CUDNN_VERSION=9.3.0 \
|
| 56 |
-
&& CUDNN_TAR_FILE=cudnn-linux-x86_64-${CUDNN_VERSION}.tgz \
|
| 57 |
-
&& wget https://developer.download.nvidia.com/compute/redist/cudnn/v9.3/${CUDNN_TAR_FILE} -O /tmp/${CUDNN_TAR_FILE} \
|
| 58 |
-
&& tar -xzvf /tmp/${CUDNN_TAR_FILE} -C /tmp \
|
| 59 |
-
&& cp /tmp/cuda/include/cudnn*.h /usr/local/cuda/include/ \
|
| 60 |
-
&& cp /tmp/cuda/lib64/libcudnn* /usr/local/cuda/lib64/ \
|
| 61 |
-
&& chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn* \
|
| 62 |
-
&& rm -rf /tmp/${CUDNN_TAR_FILE} /tmp/cuda
|
| 63 |
-
|
| 64 |
-
# Verify cuDNN version
|
| 65 |
RUN dpkg-query -W libcudnn8
|
| 66 |
|
| 67 |
# Verify Python and pip versions
|
|
@@ -69,6 +58,7 @@ RUN python --version && pip --version
|
|
| 69 |
|
| 70 |
|
| 71 |
|
|
|
|
| 72 |
USER user
|
| 73 |
# Copy dependencies and install them via pip
|
| 74 |
COPY . .
|
|
|
|
| 47 |
&& curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub | gpg --batch --yes --dearmor -o /usr/share/keyrings/cuda-archive-keyring.gpg && \
|
| 48 |
echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /" > /etc/apt/sources.list.d/cuda.list && \
|
| 49 |
apt-get update && apt-get install -y \
|
| 50 |
+
cudnn-cuda-11 \
|
| 51 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 52 |
+
|
| 53 |
+
# Verify cuDNN installation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
RUN dpkg-query -W libcudnn8
|
| 55 |
|
| 56 |
# Verify Python and pip versions
|
|
|
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
+
|
| 62 |
USER user
|
| 63 |
# Copy dependencies and install them via pip
|
| 64 |
COPY . .
|