Sébastien De Greef commited on
Commit
a13ac3e
1 Parent(s): 39c827a

chore: Update Dockerfile to install CUDA and cuDNN libraries

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -26,8 +26,12 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
26
  && rm -rf /var/lib/apt/lists/*
27
 
28
 
29
-
30
- # Create a working directory
 
 
 
 
31
  WORKDIR /app
32
 
33
  # Create a non-root user and switch to it
 
26
  && rm -rf /var/lib/apt/lists/*
27
 
28
 
29
+ RUN wget https://developer.download.nvidia.com/compute/cudnn/9.1.1/local_installers/cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
30
+ && sudo dpkg -i cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
31
+ && sudo cp /var/cudnn-local-repo-ubuntu2204-9.1.1/cudnn-*-keyring.gpg /usr/share/keyrings/ \
32
+ && sudo apt-get update && sudo apt-get -y install cuda cudnn
33
+
34
+ # Create a working directory
35
  WORKDIR /app
36
 
37
  # Create a non-root user and switch to it