Sébastien De Greef commited on
Commit
1c2ba78
·
1 Parent(s): f030780

chore: Update Dockerfile to install CUDA 12.4.1 and cuDNN 9.1.1 libraries

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -28,13 +28,17 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
28
  python3-venv \
29
  && rm -rf /var/lib/apt/lists/*
30
 
 
 
 
 
31
 
32
  RUN wget -q https://developer.download.nvidia.com/compute/cudnn/9.1.1/local_installers/cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
33
  && sudo dpkg -i cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
34
  && sudo cp /var/cudnn-local-repo-ubuntu2204-9.1.1/cudnn-*-keyring.gpg /usr/share/keyrings/ \
35
  && sudo apt-get update && sudo apt-get -y install cudnn
36
 
37
- # Create a working directory
38
  WORKDIR /app
39
 
40
  # Create a non-root user and switch to it
 
28
  python3-venv \
29
  && rm -rf /var/lib/apt/lists/*
30
 
31
+ ENV PATH="/home/chatbot/.local/bin:${PATH}"
32
+
33
+ RUN wget https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda_12.4.1_550.54.15_linux.run \
34
+ && sudo sh cuda_12.4.1_550.54.15_linux.run
35
 
36
  RUN wget -q https://developer.download.nvidia.com/compute/cudnn/9.1.1/local_installers/cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
37
  && sudo dpkg -i cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
38
  && sudo cp /var/cudnn-local-repo-ubuntu2204-9.1.1/cudnn-*-keyring.gpg /usr/share/keyrings/ \
39
  && sudo apt-get update && sudo apt-get -y install cudnn
40
 
41
+ # Create a working directory
42
  WORKDIR /app
43
 
44
  # Create a non-root user and switch to it