Spaces:
Runtime error
Runtime error
Download Dockerfile from MASSJ77/Moderation: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/spaces/MASSJ77/Moderation/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MASSJ77/Moderation/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MASSJ77/Moderation/resolve/main/Dockerfile
563 Bytes
| # Lightweight Python image | |
| FROM python:3.10-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| # System dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| libglib2.0-0 \ | |
| libgl1 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| # FIXED ENTRY POINT - Run as a standard background script | |
| CMD ["python", "app.py"] |