fffiloni commited on
Commit
01fd498
·
verified ·
1 Parent(s): 24f26a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -52,12 +52,15 @@ 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
- && cp /var/cudnn-local-repo-ubuntu2204-9.3.0/cudnn-local-*-keyring.gpg /usr/share/keyrings/ \
56
  && apt-get update \
57
  && rm cudnn-local-repo-ubuntu2204-9.3.0_1.0-1_amd64.deb
58
 
59
- # Check NVIDIA packages installed via pip
60
- RUN echo "Checking NVIDIA packages:" && pip list | grep nvidia
 
 
 
61
 
62
  # Install your requirements
63
  RUN pip install --upgrade pip
 
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
+ && cp /var/cudnn-local-repo-ubuntu2204-9.3.0/cudnn-local-D9334AA3-keyring.gpg /usr/share/keyrings/ \
56
  && apt-get update \
57
  && rm cudnn-local-repo-ubuntu2204-9.3.0_1.0-1_amd64.deb
58
 
59
+ # Check NVIDIA packages installed via pip (using || true to prevent non-zero exit)
60
+ RUN echo "Checking NVIDIA packages:" && pip list | grep nvidia || true
61
+
62
+ # Fix permissions for pip cache
63
+ RUN mkdir -p /home/user/.cache/pip && chown -R user:user /home/user/.cache
64
 
65
  # Install your requirements
66
  RUN pip install --upgrade pip