Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -6
Dockerfile
CHANGED
@@ -4,12 +4,17 @@ FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
|
|
4 |
# Set Python to run in unbuffered mode for better logging
|
5 |
ENV PYTHONUNBUFFERED=1
|
6 |
|
7 |
-
# Install Python
|
8 |
-
RUN
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# Copy and install Python requirements
|
15 |
COPY requirements.txt .
|
|
|
4 |
# Set Python to run in unbuffered mode for better logging
|
5 |
ENV PYTHONUNBUFFERED=1
|
6 |
|
7 |
+
# Install Python and system dependencies in a single layer
|
8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
9 |
+
python3.10 \
|
10 |
+
python3-pip \
|
11 |
+
libgl1 \
|
12 |
+
libglib2.0-0 \
|
13 |
+
libsm6 \
|
14 |
+
libxext6 \
|
15 |
+
libxrender-dev \
|
16 |
+
&& ln -s /usr/bin/python3.10 /usr/bin/python \
|
17 |
+
&& rm -rf /var/lib/apt/lists/*
|
18 |
|
19 |
# Copy and install Python requirements
|
20 |
COPY requirements.txt .
|