Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +8 -5
Dockerfile
CHANGED
|
@@ -5,11 +5,14 @@ FROM python:3.10.10-slim
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
# Install system dependencies and only webscout[api]
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# Copy the rest of the application code
|
| 15 |
COPY . /app
|
|
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
# Install system dependencies and only webscout[api]
|
| 8 |
+
# Add retry logic and split commands for better error handling
|
| 9 |
+
RUN apt-get update && \
|
| 10 |
+
# Skip upgrades to avoid network issues - only install what's needed
|
| 11 |
+
apt-get install -y --no-install-recommends gcc build-essential && \
|
| 12 |
+
pip install --upgrade pip && \
|
| 13 |
+
pip install -U 'webscout[api]' && \
|
| 14 |
+
apt-get purge -y --auto-remove gcc build-essential && \
|
| 15 |
+
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
# Copy the rest of the application code
|
| 18 |
COPY . /app
|