forked from CollectivaT-dev/catotron-cpu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (27 loc) · 1.08 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
FROM python:3.7.9-slim-buster
RUN set -x \
&& apt-get update \
&& apt-get -y install --no-install-recommends wget \
&& 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 ./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 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
WORKDIR /srv