Spaces:
Runtime error
Runtime error
Download Dockerfile from Phoe2004/USP: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/Phoe2004/USP/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Phoe2004/USP/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Phoe2004/USP/resolve/main/Dockerfile
519 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System deps (ffmpeg not strictly required by edge-tts but useful for audio handling) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Hugging Face Spaces (Docker SDK) expects the app to listen on port 7860 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app:app"] | |