This commit is contained in:
XXXXRT666 2025-04-30 00:37:38 +01:00
parent 100ed29ecb
commit 7a57151f47
2 changed files with 23 additions and 5 deletions

View File

@ -77,7 +77,7 @@ jobs:
echo "After cleanup:"
df -h
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@ -103,4 +103,4 @@ jobs:
xxxxrt666/gpt-sovits:${{ matrix.tag_prefix }}-${{ needs.generate-meta.outputs.tag }}
xxxxrt666/gpt-sovits:latest-${{ matrix.tag_prefix }}
cache-from: type=gha
cache-to: type=gha,mode=max
# cache-to: type=gha,mode=max

View File

@ -16,7 +16,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
wget \
curl \
bzip2 \
unzip \
git \
vim \
@ -24,8 +23,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
procps \
ca-certificates \
locales \
net-tools \
iputils-ping \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace/GPT-SoVITS
@ -35,10 +32,21 @@ COPY . /workspace/GPT-SoVITS
ARG WGET_CMD=wget --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404
ENV WGET_CMD=${WGET_CMD}
RUN echo "== /usr ==" && du -h --max-depth=1 /usr | sort -hr | head -n 10 && \
echo "== /opt ==" && du -h --max-depth=1 /opt | sort -hr | head -n 10 && \
echo "== /root ==" && du -h --max-depth=1 /root | sort -hr | head -n 10 && \
echo "==workspace==" && du -h --max-depth=1 /workspace/GPTSoVITS | sort -hr | head -n 10
RUN eval "$WGET_CMD -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
RUN echo "== /usr ==" && du -h --max-depth=1 /usr | sort -hr | head -n 10 && \
echo "== /opt ==" && du -h --max-depth=1 /opt | sort -hr | head -n 10 && \
echo "== /root ==" && du -h --max-depth=1 /root | sort -hr | head -n 10 && \
echo "==workspace==" && du -h --max-depth=1 /workspace/GPTSoVITS | sort -hr | head -n 10
ARG USE_FUNASR=false
ARG USE_FASTERWHISPER=false
@ -60,6 +68,11 @@ RUN if [ "$USE_FASTERWHISPER" = "true" ]; then \
echo "Skipping faster-whisper download" ; \
fi
RUN echo "== /usr ==" && du -h --max-depth=1 /usr | sort -hr | head -n 10 && \
echo "== /opt ==" && du -h --max-depth=1 /opt | sort -hr | head -n 10 && \
echo "== /root ==" && du -h --max-depth=1 /root | sort -hr | head -n 10 && \
echo "==workspace==" && du -h --max-depth=1 /workspace/GPTSoVITS | sort -hr | head -n 10
ENV PATH="/root/anaconda3/bin:$PATH"
SHELL ["/bin/bash", "-c"]
@ -79,6 +92,11 @@ RUN source /root/anaconda3/etc/profile.d/conda.sh && \
pip cache purge && \
pip show torch
RUN echo "== /usr ==" && du -h --max-depth=1 /usr | sort -hr | head -n 10 && \
echo "== /opt ==" && du -h --max-depth=1 /opt | sort -hr | head -n 10 && \
echo "== /root ==" && du -h --max-depth=1 /root | sort -hr | head -n 10 && \
echo "==workspace==" && du -h --max-depth=1 /workspace/GPTSoVITS | sort -hr | head -n 10
RUN rm -rf /root/anaconda3/pkgs
EXPOSE 9871 9872 9873 9874 9880