File size: 778 Bytes
4cb3214
a964f0a
 
a23d717
c5fabf2
 
 
 
c40a0b8
a23d717
 
 
efefb09
 
 
a23d717
0d6e0dc
 
a23d717
 
 
 
 
 
8c92072
a23d717
92ed7b1
 
982d1b8
 
 
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
FROM python:3.8

RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

ENV TZ=Asia/Shanghai

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update && apt-get install -y build-essential ffmpeg parallel aria2 && apt-get clean

COPY ./requirements.txt /workspace/requirements.txt

WORKDIR /workspace

RUN pip3 install -r requirements.txt && pip3 install webrtcvad-wheels

WORKDIR /

COPY . /workspace

VOLUME [ "/datasets", "/workspace/synthesizer/saved_models/" ]

ENV DATASET_MIRROR=default FORCE_RETRAIN=false TRAIN_DATASETS=aidatatang_200zh\ magicdata\ aishell3\ data_aishell TRAIN_SKIP_EXISTING=true

EXPOSE 7860

RUN chmod -R 777 /workspace

WORKDIR /workspace

CMD ["python3", "web.py"]