-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
25 lines (22 loc) · 1 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
FROM python:3.11
# ---------------------------------------------------------------
# Required to install `sudachipy` a requirement from `TTS`
ENV PATH=$PATH:/root/.cargo/bin
RUN curl https://sh.rustup.rs -sSf > /rust.sh && sh /rust.sh -y \
&& rustup install stable
# ---------------------------------------------------------------
# Required to install `libsndfile1` a requirement from `TTS`
RUN apt update && \
apt upgrade -y && \
apt install -y libsndfile1 && \
apt install -y ffmpeg
# ---------------------------------------------------------------
WORKDIR /app
COPY ["requirements.txt", "Makefile", "./"]
RUN pip install -r requirements.txt
COPY configs.yaml .
COPY src/ src/
# ---------------------------------------------------------------
# `TTS` prompts the user to accept terms, here I donwload a model and agree with them
RUN yes | python -c "from TTS.api import TTS; TTS(model_name='tts_models/multilingual/multi-dataset/xtts_v2')"
# ---------------------------------------------------------------