This commit is contained in:
XXXXRT666 2025-04-29 18:33:53 +01:00
parent 292e587088
commit b51b87b2d1
3 changed files with 35 additions and 40 deletions

View File

@ -2,9 +2,6 @@ name: Build and Publish Docker Image
on:
workflow_dispatch:
push:
branches:
- Docker
jobs:
build-and-push:
@ -28,7 +25,7 @@ jobs:
run: |
DATE=$(date +'%Y%m%d')
COMMIT=$(git rev-parse --short=6 HEAD)
echo "::set-output name=tag::${DATE}-${COMMIT}"
echo "tag=${DATE}-${COMMIT}" >> $GITHUB_OUTPUT
- name: Build and Push Lite Docker Image
uses: docker/build-push-action@v5

View File

@ -28,7 +28,7 @@ WORKDIR /workspace/GPT-SoVITS
COPY . /workspace/GPT-SoVITS
RUN wget --tries=25 --wait=3 --read-timeout=40 -O anaconda.sh "https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh" && \
RUN wget -nv --show-progress --tries=25 --wait=3 --read-timeout=40 -O anaconda.sh "https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh" && \
bash anaconda.sh -b -p /root/anaconda3 && \
rm anaconda.sh
@ -37,7 +37,7 @@ ARG USE_FASTERWHISPER=false
RUN if [ "$USE_FUNASR" = "true" ]; then \
echo "Downloading funasr..." && \
wget --tries=25 --wait=3 --read-timeout=40 "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/funasr.zip" && \
wget -nv --show-progress --tries=25 --wait=3 --read-timeout=40 "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/funasr.zip" && \
unzip funasr.zip -d tools/asr/models/ && \
rm -rf funasr.zip ; \
else \
@ -46,7 +46,7 @@ RUN if [ "$USE_FUNASR" = "true" ]; then \
RUN if [ "$USE_FASTERWHISPER" = "true" ]; then \
echo "Downloading faster-whisper..." && \
wget --tries=25 --wait=3 --read-timeout=40 "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/faster-whisper.zip" && \
wget -nv --show-progress --tries=25 --wait=3 --read-timeout=40 "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main/faster-whisper.zip" && \
unzip faster-whisper.zip -d tools/asr/models/ && \
rm -rf faster-whisper.zip ; \
else \
@ -65,13 +65,11 @@ ENV MAKEFLAGS="-j$(nproc)"
RUN source /root/anaconda3/etc/profile.d/conda.sh && \
conda activate GPTSoVITS && \
bash /workspace/install.sh --source HF --download-uvr5 && \
bash install.sh --source HF --download-uvr5 && \
pip cache purge
RUN rm -rf /root/anaconda3/pkgs
EXPOSE 9871 9872 9873 9874 9880
WORKDIR /workspace/GPT-SoVITS
CMD ["/bin/bash", "-c", "source /root/anaconda3/etc/profile.d/conda.sh && conda activate GPTSoVITS && export PYTHONPATH=$(pwd) && exec bash"]

View File

@ -104,7 +104,7 @@ if find "GPT_SoVITS/pretrained_models" -mindepth 1 ! -name '.gitignore' | grep -
echo "Pretrained Model Exists"
else
echo "Download Pretrained Models"
wget --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$PRETRINED_URL"
wget -nv --show-progress --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$PRETRINED_URL"
unzip pretrained_models.zip
rm -rf pretrained_models.zip
@ -114,7 +114,7 @@ fi
if [ ! -d "GPT_SoVITS/text/G2PWModel" ]; then
echo "Download G2PWModel"
wget --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$G2PW_URL"
wget -nv --show-progress --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$G2PW_URL"
unzip G2PWModel.zip
rm -rf G2PWModel.zip
@ -128,7 +128,7 @@ if [ "$DOWNLOAD_UVR5" = "true" ];then
echo "UVR5 Model Exists"
else
echo "Download UVR5 Model"
wget --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$UVR5_URL"
wget -nv --show-progress --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 "$UVR5_URL"
unzip uvr5_weights.zip
rm -rf uvr5_weights.zip