xtts / Dockerfile
lalalic's picture
Update Dockerfile
8c9d5e9 verified
raw
history blame contribute delete
901 Bytes
from python:3.9
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME
COPY ./requirements.txt $HOME/requirements.txt
RUN pip install --no-cache-dir --upgrade -r $HOME/requirements.txt
COPY . .
USER root
RUN chmod +x ./ffmpeg
USER user
RUN mkdir tts
ENV MODEL_DIR=$HOME/tts
WORKDIR $MODEL_DIR
RUN wget -nv 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/config.json'
RUN wget -nv 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/vocab.json'
RUN wget -nv 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/hash.md5'
RUN wget -nv 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/speakers_xtts.pth'
RUN wget -nv 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/model.pth'
# RUN git clone --depth 1 https://huggingface.co/coqui/XTTS-v2/
WORKDIR $HOME
CMD ["gunicorn", "-b", "0.0.0.0:7860", "xtts:app", "--timeout", "120"]