Gregniuki commited on
Commit
88f7c6d
1 Parent(s): 81061be

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile CHANGED
@@ -1,3 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
  USER root
3
 
 
1
+ FROM debian:bullseye-slim
2
+ ENV NVIDIA_VISIBLE_DEVICES all
3
+ ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
4
+ ENV NVIDIA_REQUIRE_CUDA "cuda>=8.0"
5
+ ENV LD_LIBRARY_PATH=/usr/local/cuda-11.8/targets/x86_64-linux/lib:/usr/local/cuda-11.8/targets/x86_64-linux/include:/usr/local/cuda/include:/usr/local/cuda-11.8:/usr/local/cuda/lib:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
6
+
7
+ RUN apt-get update && apt-get install -y gnupg2 curl
8
+
9
+ 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
10
+
11
+ # Add the NVIDIA repository to the APT sources list
12
+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
13
+
14
+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
15
+
16
 
17
  USER root
18