Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -5
Dockerfile
CHANGED
@@ -3,11 +3,17 @@ FROM ghcr.io/huggingface/text-generation-inference:latest
|
|
3 |
|
4 |
USER root
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
# Copy and install Python requirements
|
13 |
COPY requirements.txt .
|
|
|
3 |
|
4 |
USER root
|
5 |
|
6 |
+
# Install Python and system dependencies in a single layer
|
7 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
8 |
+
python3.10 \
|
9 |
+
python3-pip \
|
10 |
+
libgl1 \
|
11 |
+
libglib2.0-0 \
|
12 |
+
libsm6 \
|
13 |
+
libxext6 \
|
14 |
+
libxrender-dev \
|
15 |
+
&& ln -s /usr/bin/python3.10 /usr/bin/python \
|
16 |
+
&& rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
# Copy and install Python requirements
|
19 |
COPY requirements.txt .
|