Gregniuki commited on
Commit
a524e91
·
1 Parent(s): 531a224

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -6,9 +6,18 @@ RUN dpkg --add-architecture amd64
6
  RUN apt-get update && \
7
  apt-get install -y --no-install-recommends gnupg2 curl ca-certificates
8
  RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/7fa2af80.pub
 
 
 
 
 
 
 
 
 
9
  #RUN echo "deb https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list
10
- USER root
11
- RUN echo "deb https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64 /" > /etc/apt/sources.list.d/cuda.list
12
 
13
  # Install FFmpeg
14
  RUN apt-get update && \
 
6
  RUN apt-get update && \
7
  apt-get install -y --no-install-recommends gnupg2 curl ca-certificates
8
  RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/7fa2af80.pub
9
+
10
+ # Import the NVIDIA GPG key
11
+ #RUN apt-get update && apt-get install -y gnupg2 curl
12
+ RUN curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/7fa2af80.pub | gpg --dearmor -o /usr/share/keyrings/cuda-archive-keyring.gpg
13
+
14
+ # Add the CUDA repository to sources.list
15
+ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64 /" | tee /etc/apt/sources.list.d/cuda.list
16
+
17
+
18
  #RUN echo "deb https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list
19
+ #USER root
20
+ #RUN echo "deb https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64 /" > /etc/apt/sources.list.d/cuda.list
21
 
22
  # Install FFmpeg
23
  RUN apt-get update && \