Notter7 commited on
Commit
d970ece
·
verified ·
1 Parent(s): ddea3f6

Fix Dockerfile startup command

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -13
Dockerfile CHANGED
@@ -33,8 +33,6 @@ WORKDIR /app
33
  RUN git clone --depth 1 https://github.com/RVC-Boss/GPT-SoVITS.git .
34
 
35
 
36
- # Hugging Face Docker Spaces route traffic to port 7860.
37
- # The Russian model card requires vocab size 753 and Russian base checkpoints.
38
  RUN python - <<'PY'
39
  from pathlib import Path
40
 
@@ -61,12 +59,11 @@ RUN source /opt/conda/etc/profile.d/conda.sh && \
61
  conda activate GPTSoVits && \
62
  bash install.sh --device CPU --source HF && \
63
  pip install --no-cache-dir epitran \
64
- "fastapi[standard]==0.115.2" \
65
- "starlette==0.40.0" \
66
- "gradio==4.44.1"
67
 
68
 
69
- # Russian GPT-SoVITS weights from https://huggingface.co/fuckSelf/GPT-SoVITS-Russian
70
  RUN mkdir -p GPT_SoVITS/pretrained_models/v2Pro GPT_weights_v2ProPlus SoVITS_weights_v2ProPlus && \
71
  curl -L --retry 5 -o GPT_SoVITS/pretrained_models/s1v3-ru.ckpt \
72
  https://huggingface.co/fuckSelf/GPT-SoVITS-Russian/resolve/main/s1v3-ru.ckpt && \
@@ -78,10 +75,5 @@ RUN mkdir -p GPT_SoVITS/pretrained_models/v2Pro GPT_weights_v2ProPlus SoVITS_wei
78
  https://huggingface.co/fuckSelf/GPT-SoVITS-Russian/resolve/main/ru-base_e10_s123570.pth
79
 
80
 
81
- RUN cat > /app/start-space.sh <<'SH'
82
- #!/usr/bin/env bash
83
- set -euxo pipefail
84
- source /opt/conda/etc/profile.d/conda.sh
85
- conda activate GPTSoVits
86
- cd /app
87
-
 
33
  RUN git clone --depth 1 https://github.com/RVC-Boss/GPT-SoVITS.git .
34
 
35
 
 
 
36
  RUN python - <<'PY'
37
  from pathlib import Path
38
 
 
59
  conda activate GPTSoVits && \
60
  bash install.sh --device CPU --source HF && \
61
  pip install --no-cache-dir epitran \
62
+ "fastapi[standard]==0.115.2" \
63
+ "starlette==0.40.0" \
64
+ "gradio==4.44.1"
65
 
66
 
 
67
  RUN mkdir -p GPT_SoVITS/pretrained_models/v2Pro GPT_weights_v2ProPlus SoVITS_weights_v2ProPlus && \
68
  curl -L --retry 5 -o GPT_SoVITS/pretrained_models/s1v3-ru.ckpt \
69
  https://huggingface.co/fuckSelf/GPT-SoVITS-Russian/resolve/main/s1v3-ru.ckpt && \
 
75
  https://huggingface.co/fuckSelf/GPT-SoVITS-Russian/resolve/main/ru-base_e10_s123570.pth
76
 
77
 
78
+ EXPOSE 7860
79
+ CMD ["bash", "-lc", "source /opt/conda/etc/profile.d/conda.sh && conda activate GPTSoVits && cd /app && echo '=== GPT-SoVITS startup on 7860 ===' && python -u webui.py"]