diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index 3ae00801..f7774ad5 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -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 \ No newline at end of file + # cache-to: type=gha,mode=max \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ec0a887f..ce762c76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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