Spaces:
Runtime error
Runtime error
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
|
@@ -2,10 +2,10 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install system dependencies for OpenCV
|
| 6 |
RUN apt-get update && \
|
| 7 |
apt-get install -y --no-install-recommends \
|
| 8 |
-
libgl1
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Install Python dependencies
|
|
@@ -15,8 +15,6 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
| 15 |
# Copy app
|
| 16 |
COPY app.py /app/
|
| 17 |
|
| 18 |
-
# Expose the port Gradio runs on
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
-
# Run the app
|
| 22 |
CMD ["python", "/app/app.py"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install system dependencies for OpenCV (fixed for Debian Trixie)
|
| 6 |
RUN apt-get update && \
|
| 7 |
apt-get install -y --no-install-recommends \
|
| 8 |
+
libgl1 libglib2.0-0 libsm6 libxext6 libxrender1 libgomp1 \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Install Python dependencies
|
|
|
|
| 15 |
# Copy app
|
| 16 |
COPY app.py /app/
|
| 17 |
|
|
|
|
| 18 |
EXPOSE 7860
|
| 19 |
|
|
|
|
| 20 |
CMD ["python", "/app/app.py"]
|