thewise commited on
Commit
9a09898
·
verified ·
1 Parent(s): 6031cce

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile CHANGED
@@ -3,6 +3,18 @@ FROM ubuntu:latest
3
 
4
  RUN apt update && apt install curl -y
5
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  RUN curl https://ollama.ai/install.sh | sh
7
 
8
  # Create the directory and give appropriate permissions
 
3
 
4
  RUN apt update && apt install curl -y
5
 
6
+
7
+ RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey \
8
+ | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
9
+
10
+ RUN curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list \
11
+ | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' \
12
+ | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
13
+
14
+ RUN sudo apt-get update
15
+
16
+ RUN apt-get install -y nvidia-container-toolkit
17
+
18
  RUN curl https://ollama.ai/install.sh | sh
19
 
20
  # Create the directory and give appropriate permissions