From 573646118362988da5edbe92b2c89c91d367d915 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 31 May 2024 21:16:12 +0200 Subject: [PATCH] remove py_cache: save 13 MB image size --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 059640b..ec080c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,6 +49,7 @@ RUN set -x && \ # apt-get install -o Dpkg::Options::="--force-confnew" -y --no-install-recommends -q \ # ${POST_PACKAGES[@]} && \ apt-get autoremove -q -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 -y && \ + find /usr | grep -E "/__pycache__$" | xargs rm -rf || true && \ apt-get clean -q -y && \ rm -rf /src /tmp/* /var/lib/apt/lists/* /git && \ #