File size: 901 Bytes
94cf873
b0e7b0c
 
 
8c9d5e9
b0e7b0c
 
 
 
94cf873
95b285f
f502636
df2e7e2
95b285f
f502636
45997ae
6936e32
95b285f
 
4215f24
 
 
 
 
6936e32
 
45997ae
95b285f
14f308d
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
27
28
29
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"]