Spaces:
Starting
on
T4
Starting
on
T4
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
@@ -4,7 +4,13 @@ WORKDIR /app
|
|
4 |
|
5 |
COPY requirements.txt requirements.txt
|
6 |
|
7 |
-
RUN apt-get update && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
RUN python -m venv venv && \
|
9 |
. /app/venv/bin/activate && \
|
10 |
pip install --upgrade pip && \
|
|
|
4 |
|
5 |
COPY requirements.txt requirements.txt
|
6 |
|
7 |
+
RUN apt-get update && apt-get install -y curl gnupg && apt-get clean && rm -rf /var/lib/apt/lists/*
|
8 |
+
|
9 |
+
RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
|
10 |
+
&& 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
|
11 |
+
|
12 |
+
RUN apt-get update && apt-get install -y nvidia-container-toolkit || true
|
13 |
+
|
14 |
RUN python -m venv venv && \
|
15 |
. /app/venv/bin/activate && \
|
16 |
pip install --upgrade pip && \
|