Skip to content

Commit

Permalink
Update Dockerfile (#1195)
Browse files Browse the repository at this point in the history
删除Docker镜像构建时的安装缓存以及禁用Python依赖安装时的缓存。可以降低最终镜像大小
  • Loading branch information
mrhan1993 committed Sep 5, 2023
1 parent 05876e6 commit 569fcd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ WORKDIR /app

COPY . .

RUN apt update && apt install -y -qq ffmpeg aria2
RUN apt update && apt install -y -qq ffmpeg aria2 && apt clean

RUN pip3 install -r requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt

RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/D40k.pth -d assets/pretrained_v2/ -o D40k.pth
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/G40k.pth -d assets/pretrained_v2/ -o G40k.pth
Expand All @@ -26,4 +26,4 @@ RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co

VOLUME [ "/app/weights", "/app/opt" ]

CMD ["python3", "infer-web.py"]
CMD ["python3", "infer-web.py"]

0 comments on commit 569fcd8

Please sign in to comment.