Notter7 commited on
Commit
b317881
·
verified ·
1 Parent(s): 676afe6

Add GPT-SoVITS Docker base

Browse files
Files changed (1) hide show
  1. Dockerfile +37 -0
Dockerfile ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive \
4
+ PYTHONUNBUFFERED=1 \
5
+ PIP_NO_CACHE_DIR=1 \
6
+ is_half=False \
7
+ is_share=False \
8
+ HF_HOME=/data/.cache/huggingface
9
+
10
+ RUN apt-get update && apt-get install -y --no-install-recommends \
11
+ git \
12
+ git-lfs \
13
+ ffmpeg \
14
+ sox \
15
+ libsox-dev \
16
+ libsndfile1 \
17
+ build-essential \
18
+ curl \
19
+ ca-certificates \
20
+ && rm -rf /var/lib/apt/lists/*
21
+
22
+ WORKDIR /app
23
+ RUN git clone --depth 1 https://github.com/RVC-Boss/GPT-SoVITS.git .
24
+
25
+ # Hugging Face Docker Spaces route traffic to port 7860.
26
+ RUN python - <<'PY'
27
+ from pathlib import Path
28
+ path = Path('config.py')
29
+ text = path.read_text()
30
+ text = text.replace('webui_port_main = 9874', 'webui_port_main = 7860')
31
+ path.write_text(text)
32
+ PY
33
+
34
+ RUN bash install.sh --device CPU --source HF
35
+
36
+ EXPOSE 7860
37
+ CMD ["python", "webui.py"]