Spaces:
Sleeping
Sleeping
Download Dockerfile from Chula-PD/voice-pd-api: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/spaces/Chula-PD/voice-pd-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Chula-PD/voice-pd-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Chula-PD/voice-pd-api/resolve/main/Dockerfile
389 Bytes
| # --- Base image --- | |
| FROM python:3.10-slim | |
| # --- Working directory --- | |
| WORKDIR /app | |
| # --- Copy all files --- | |
| COPY . /app | |
| # --- Install dependencies --- | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # --- Expose port (Hugging Face Spaces expects 7860) --- | |
| EXPOSE 7860 | |
| # --- Run FastAPI server --- | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |