-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (13 loc) · 699 Bytes
/
Dockerfile
File metadata and controls
18 lines (13 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.7-slim
RUN apt-get update && apt-get install -y --no-install-recommends wget gcc g++ make python3 python3-dev python3-pip python3-venv python3-wheel espeak espeak-ng libsndfile1-dev && rm -rf /var/lib/apt/lists/*
WORKDIR /opt
COPY ./requirements.txt /opt
RUN python -m pip install --upgrade pip
RUN python -m pip install --no-cache-dir --upgrade -r /opt/requirements.txt
RUN wget -q http://share.laklak.eu/model_vits_ca/best_model.pth -P /opt/tts-api/models/vits_ca/
COPY . /opt/tts-api
ARG speech_speed=1.0
ENV speech_speed $speech_speed
ARG mp_workers=2
ENV mp_workers $mp_workers
ENTRYPOINT python tts-api/server/server.py --speech_speed $speech_speed --mp_workers $mp_workers