remove pycache to reduce image size by 7 MB

This commit is contained in:
Matthias Wirth
2025-02-28 15:26:07 +00:00
parent b2db5f51aa
commit f0632893d1

View File

@@ -54,6 +54,8 @@ RUN set -xe && \
apt-get remove -y -q ${TEMP_PACKAGES[@]} && \
apt-get autoremove -q -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 -y && \
apt-get clean -y -q && \
# remove pycache
{ find /usr | grep -E "/__pycache__$" | xargs rm -rf || true; } && \
rm -rf \
/src/* \
/var/cache/* \