Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
@@ -5,12 +5,11 @@ FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
|
|
5 |
ENV PYTHONUNBUFFERED=1
|
6 |
|
7 |
# Install Python 3.10, pip, and system dependencies in a single layer
|
8 |
-
RUN
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
&&
|
13 |
-
&& rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
# Copy and install Python requirements
|
16 |
COPY requirements.txt .
|
|
|
5 |
ENV PYTHONUNBUFFERED=1
|
6 |
|
7 |
# Install Python 3.10, pip, and system dependencies in a single layer
|
8 |
+
RUN chmod 1777 /tmp \
|
9 |
+
&& apt update -q && apt install -y ca-certificates wget libgl1 \
|
10 |
+
&& wget -qO /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \
|
11 |
+
&& dpkg -i /tmp/cuda-keyring.deb && apt update -q \
|
12 |
+
&& apt install -y --no-install-recommends libcudnn8 libcublas-12-2
|
|
|
13 |
|
14 |
# Copy and install Python requirements
|
15 |
COPY requirements.txt .
|