Download Dockerfile from don0726/test: direct link, hf CLI and curl.
- Browser
- Download file 835 Bytes
-
https://huggingface.co/spaces/don0726/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/don0726/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/don0726/test/resolve/main/Dockerfile
835 Bytes
| FROM python:3.10-slim | |
| RUN apt update && apt install -y git ffmpeg wget && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Pre-download XTTS model (ALL wget lines must be inside ONE RUN block) | |
| RUN mkdir -p models/xtts && \ | |
| wget -O models/xtts/model.pth https://huggingface.co/coqui/XTTS-v2/resolve/main/model.pth && \ | |
| wget -O models/xtts/config.json https://huggingface.co/coqui/XTTS-v2/resolve/main/config.json && \ | |
| wget -O models/xtts/vocab.json https://huggingface.co/coqui/XTTS-v2/resolve/main/vocab.json && \ | |
| wget -O models/xtts/speakers_xtts.pth https://huggingface.co/coqui/XTTS-v2/resolve/main/speakers_xtts.pth | |
| ENV COQUI_TOS_AGREED=1 | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| ENV GRADIO_SERVER_PORT=7860 | |
| COPY app.py . | |
| CMD ["python", "app.py"] | |