From 4007a8f32dadc82981278680f673eb209e5761e0 Mon Sep 17 00:00:00 2001 From: Andrey Danilov Date: Wed, 5 Jun 2024 18:40:36 +0300 Subject: [PATCH] Optimize `pip` taking disk space on Dociker image build --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 21d7e4b..9fad3d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,8 @@ RUN pip install "poetry==1.7.1" && \ poetry install \ --no-interaction \ --no-root && \ - poetry cache purge --all + poetry cache purge --all && \ + rm -rf /root/.cache/pip COPY ./rvc ./rvc COPY ./.env-docker ./.env