Spaces:
Runtime error
Runtime error
Commit ·
93b86bb
1
Parent(s): 62f57ec
Fix Dockerfile: add wget and curl
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
# Hugging Face Spaces Docker
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Create non-root user
|
| 5 |
RUN useradd -m -u 1000 user
|
| 6 |
USER user
|
|
@@ -30,4 +36,3 @@ EXPOSE 7860
|
|
| 30 |
|
| 31 |
# Run with waitress (already in requirements.txt)
|
| 32 |
CMD ["python", "app.py"]
|
| 33 |
-
|
|
|
|
| 1 |
# Hugging Face Spaces Docker
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
+
# Install system dependencies
|
| 5 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 6 |
+
wget \
|
| 7 |
+
curl \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
# Create non-root user
|
| 11 |
RUN useradd -m -u 1000 user
|
| 12 |
USER user
|
|
|
|
| 36 |
|
| 37 |
# Run with waitress (already in requirements.txt)
|
| 38 |
CMD ["python", "app.py"]
|
|
|