File size: 835 Bytes
cefd50a dfd3638 cefd50a 1534e81 b2e7ff6 1534e81 732ba51 b2e7ff6 dfd3638 c1f3854 cefd50a dfd3638 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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"]
|