Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
@@ -46,9 +46,16 @@ RUN apt-get update && apt-get install -y \
|
|
46 |
&& update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip 1 \
|
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 |
rm -rf /var/lib/apt/lists/*
|
51 |
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
# Verify cuDNN version
|
54 |
RUN dpkg-query -W libcudnn8
|
@@ -56,6 +63,7 @@ RUN dpkg-query -W libcudnn8
|
|
56 |
# Verify Python and pip versions
|
57 |
RUN python --version && pip --version
|
58 |
|
|
|
59 |
USER user
|
60 |
# Copy dependencies and install them via pip
|
61 |
COPY . .
|
|
|
46 |
&& update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip 1 \
|
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 |
+
libcudnn8=8.9.3.* \
|
51 |
+
libcudnn8-dev=8.9.3.* && \
|
52 |
rm -rf /var/lib/apt/lists/*
|
53 |
|
54 |
+
# Install cuDNN 9.3.0 specifically
|
55 |
+
RUN apt-get update && apt-get install -y \
|
56 |
+
libcudnn8=9.3.0.* \
|
57 |
+
libcudnn8-dev=9.3.0.* && \
|
58 |
+
rm -rf /var/lib/apt/lists/*
|
59 |
|
60 |
# Verify cuDNN version
|
61 |
RUN dpkg-query -W libcudnn8
|
|
|
63 |
# Verify Python and pip versions
|
64 |
RUN python --version && pip --version
|
65 |
|
66 |
+
|
67 |
USER user
|
68 |
# Copy dependencies and install them via pip
|
69 |
COPY . .
|