-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (37 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
50 lines (37 loc) · 1.27 KB
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
48
49
50
# ---------- builder stage ----------
FROM python:3.10-slim AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libsox-dev \
wget \
ca-certificates \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/RVC-Boss/GPT-SoVITS/archive/refs/heads/main.zip \
&& unzip main.zip \
&& mv GPT-SoVITS-main GPT-SoVITS \
&& rm main.zip
WORKDIR /GPT-SoVITS
RUN pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir torchcodec
# ---------- runtime stage ----------
FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libsox-dev \
ffmpeg \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/lib/python3.10 /usr/local/lib/python3.10
COPY --from=builder /usr/local/bin /usr/local/bin
COPY --from=builder /GPT-SoVITS /GPT-SoVITS
WORKDIR /GPT-SoVITS
COPY pretrained_models GPT_SoVITS/pretrained_models
COPY G2PWModel GPT_SoVITS/text/G2PWModel
COPY averaged_perceptron_tagger_eng /root/nltk_data/taggers/averaged_perceptron_tagger_eng
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV CONFIG_PATH=/configs/tts_infer.yaml
ENV PUID=1000
ENV PGID=1000
EXPOSE 9880
ENTRYPOINT ["/entrypoint.sh"]