lalalic commited on
Commit
95b285f
·
verified ·
1 Parent(s): da4e7f2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -12,19 +12,22 @@ COPY . .
12
  RUN mkdir samples
13
  RUN mkdir caches
14
  ENV LIBROSA_CACHE_DIR=$HOME/caches
 
15
  USER root
16
  RUN chmod +x ./ffmpeg
 
17
  USER user
18
 
19
  RUN mkdir tts
20
- RUN curl -o tts/model.pth 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/model.pth'
21
- RUN curl -o tts/config.json 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/config.json'
22
- RUN curl -o tts/vocab.pth 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/vocab.pth'
23
- RUN curl -o tts/hash.md5 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/hash.md5'
24
- RUN curl -o tts/speakers_xtts.pth 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/speakers_xtts.pth'
25
-
 
26
 
27
  # RUN git clone --depth 1 https://huggingface.co/coqui/XTTS-v2/
28
- ENV MODEL_DIR=$HOME/tts
29
 
 
30
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "xtts:app", "--timeout", "120"]
 
12
  RUN mkdir samples
13
  RUN mkdir caches
14
  ENV LIBROSA_CACHE_DIR=$HOME/caches
15
+
16
  USER root
17
  RUN chmod +x ./ffmpeg
18
+
19
  USER user
20
 
21
  RUN mkdir tts
22
+ ENV MODEL_DIR=$HOME/tts
23
+ WORKDIR $MODEL_DIR
24
+ RUN wget 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/model.pth'
25
+ RUN wget 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/config.json'
26
+ RUN wget 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/vocab.pth'
27
+ RUN wget 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/hash.md5'
28
+ RUN wget 'https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/speakers_xtts.pth'
29
 
30
  # RUN git clone --depth 1 https://huggingface.co/coqui/XTTS-v2/
 
31
 
32
+ WORKDIR $HOME
33
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "xtts:app", "--timeout", "120"]