fffiloni commited on
Commit
ae46f5b
·
verified ·
1 Parent(s): 6b257cf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -4
Dockerfile CHANGED
@@ -8,13 +8,21 @@ RUN apt-get update && apt-get install -y \
8
  git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev \
9
  build-essential cmake g++ python3-dev
10
 
 
11
  RUN apt-get update && apt-get install -y \
12
- software-properties-common && \
13
- add-apt-repository -y ppa:graphics-drivers/ppa && \
14
- apt-get update && apt-get install -y \
 
 
 
 
 
 
 
15
  cuda-command-line-tools-11-7 \
16
  libcusolver-dev-11-7 \
17
- libcublas-dev-11-7 \
18
  libcudnn8
19
 
20
  # Create a user
 
8
  git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev \
9
  build-essential cmake g++ python3-dev
10
 
11
+ # Install required system dependencies
12
  RUN apt-get update && apt-get install -y \
13
+ software-properties-common wget gnupg2 && \
14
+ rm -rf /var/lib/apt/lists/*
15
+
16
+ # Add NVIDIA package repositories
17
+ RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb && \
18
+ dpkg -i cuda-keyring_1.0-1_all.deb && \
19
+ apt-get update
20
+
21
+ # Install CUDA libraries manually
22
+ RUN apt-get install -y \
23
  cuda-command-line-tools-11-7 \
24
  libcusolver-dev-11-7 \
25
+ libcublas-dev \
26
  libcudnn8
27
 
28
  # Create a user