Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +15 -2
Dockerfile
CHANGED
|
@@ -10,8 +10,21 @@ COPY . .
|
|
| 10 |
# Install any needed packages specified in requirements.txt
|
| 11 |
RUN apt-get update && \
|
| 12 |
apt-get install -y --no-install-recommends \
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
# Install required Python packages
|
|
|
|
| 10 |
# Install any needed packages specified in requirements.txt
|
| 11 |
RUN apt-get update && \
|
| 12 |
apt-get install -y --no-install-recommends \
|
| 13 |
+
gnupg \
|
| 14 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
+
|
| 16 |
+
# Add NVIDIA package repositories
|
| 17 |
+
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/debian10/x86_64/cuda-10-1_10.1.243-1_amd64.deb && \
|
| 18 |
+
dpkg -i cuda-10-1_10.1.243-1_amd64.deb && \
|
| 19 |
+
rm cuda-10-1_10.1.243-1_amd64.deb && \
|
| 20 |
+
apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/debian10/x86_64/7fa2af80.pub && \
|
| 21 |
+
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/debian10/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
|
| 22 |
+
apt-get update
|
| 23 |
+
|
| 24 |
+
# Install CUDA and other dependencies
|
| 25 |
+
RUN apt-get install -y --no-install-recommends \
|
| 26 |
+
cuda-cudart-10-1 \
|
| 27 |
+
cuda-compat-10-1 \
|
| 28 |
&& rm -rf /var/lib/apt/lists/*
|
| 29 |
|
| 30 |
# Install required Python packages
|