forked from shoegazerstella/tacotron2_cpu
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
47 lines (39 loc) · 1.57 KB
/
Dockerfile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM python:3.7.9-slim-buster
RUN set -x \
&& apt-get update \
&& apt-get -y install --no-install-recommends\
wget\
git\
gcc\
g++\
libsndfile1-dev\
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY ./requirements-server.txt /srv/requirements.txt
RUN pip install --no-cache-dir -U pip
RUN pip install --no-cache-dir -r /srv/requirements.txt
COPY ./demo_server.py /srv/demo_server.py
COPY ./server.py /srv/server.py
COPY ./synthesizer.py /srv/synthesizer.py
COPY ./hparam.py /srv/hparam.py
COPY ./hparams_synth.py /srv/hparams_synth.py
COPY ./model.py /srv/model.py
COPY ./utils_tts.py /srv/utils_tts.py
COPY ./layers.py /srv/layers.py
COPY ./audio_processing.py /srv/audio_processing.py
COPY ./stft.py /srv/stft.py
COPY ./text /srv/text
COPY ./templates /srv/templates
RUN pip install --no-cache-dir git+https://github.com/CollectivaT-dev/TTS
RUN mkdir /srv/models
WORKDIR /srv/models
#RUN wget -q https://www.softcatala.org/pub/softcatala/catotron-models/upc_ona_tacotron2.pt
#RUN wget -q https://www.softcatala.org/pub/softcatala/catotron-models/upc_pau_tacotron2.pt
RUN wget -q https://www.softcatala.org/pub/softcatala/catotron-models/melgan_onapau_catotron.pt
RUN wget -q https://g4e5.c13.e2-2.dev/dataset-share/upc_pau_coqui_speedy_speech.pth.tar
RUN wget -q https://g4e5.c13.e2-2.dev/dataset-share/config_pau_speedy_speech.json
RUN wget -q https://g4e5.c13.e2-2.dev/dataset-share/config_coqui_vocoder.json
WORKDIR /srv
ENTRYPOINT [ "python" ]
CMD [ "demo_server.py" ]