Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +13 -2
Dockerfile
CHANGED
|
@@ -1,10 +1,21 @@
|
|
| 1 |
-
# Dockerfile
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
WORKDIR /app
|
| 5 |
COPY requirements.txt /app/requirements.txt
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
RUN python -m pip install --upgrade pip setuptools wheel \
|
| 9 |
&& python -m pip install --no-cache-dir -r /app/requirements.txt
|
| 10 |
|
|
|
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
+
ENV PIP_NO_INPUT=1 \
|
| 4 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 5 |
+
PIP_DEFAULT_TIMEOUT=300 \
|
| 6 |
+
PIP_RETRIES=12
|
| 7 |
+
|
| 8 |
+
# Minimal build tools (wheel builds sometimes needed)
|
| 9 |
+
RUN apt-get update \
|
| 10 |
+
&& apt-get install -y --no-install-recommends build-essential \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
+
|
| 13 |
WORKDIR /app
|
| 14 |
COPY requirements.txt /app/requirements.txt
|
| 15 |
|
| 16 |
+
# Force a clean layer if you need to rebuild again later; bump this value to invalidate cache
|
| 17 |
+
ARG CACHE_BUSTER=2025-09-02-11-10
|
| 18 |
+
|
| 19 |
RUN python -m pip install --upgrade pip setuptools wheel \
|
| 20 |
&& python -m pip install --no-cache-dir -r /app/requirements.txt
|
| 21 |
|