Spaces:
Runtime error
Runtime error
Download Dockerfile from shawange/indextts2-api: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/shawange/indextts2-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shawange/indextts2-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shawange/indextts2-api/resolve/main/Dockerfile
607 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| HF_HOME=/data/cache \ | |
| MODEL_DIR=/data/indextts2 | |
| # System deps (ffmpeg required for audio processing, git for IndexTTS2 install) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg git curl ca-certificates && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Create model directory | |
| RUN mkdir -p /data/indextts2 | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| COPY app.py ./ | |
| ENV PORT=7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |