Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -2,16 +2,16 @@
|
|
2 |
FROM ubuntu:latest
|
3 |
|
4 |
# Update packages and install curl and gnupg
|
5 |
-
RUN apt-get update && apt-get install -y
|
6 |
-
curl \
|
7 |
-
gnupg
|
8 |
|
9 |
# Add NVIDIA package repositories
|
10 |
-
RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
|
11 |
-
&& echo "deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/ $(. /etc/os-release; echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/nvidia-container-toolkit.list
|
12 |
|
13 |
# Install NVIDIA container toolkit (Check for any updated methods or URLs for Ubuntu jammy)
|
14 |
-
RUN apt-get update && apt-get install -y nvidia-container-toolkit || true
|
15 |
|
16 |
# Install application
|
17 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
|
|
2 |
FROM ubuntu:latest
|
3 |
|
4 |
# Update packages and install curl and gnupg
|
5 |
+
RUN apt-get update && apt-get install curl -y
|
6 |
+
#curl \
|
7 |
+
#gnupg
|
8 |
|
9 |
# Add NVIDIA package repositories
|
10 |
+
#RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
|
11 |
+
# && echo "deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/ $(. /etc/os-release; echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/nvidia-container-toolkit.list
|
12 |
|
13 |
# Install NVIDIA container toolkit (Check for any updated methods or URLs for Ubuntu jammy)
|
14 |
+
#RUN apt-get update && apt-get install -y nvidia-container-toolkit || true
|
15 |
|
16 |
# Install application
|
17 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|