Spaces:
Running
Running
| 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"] | |