Skip to content

Commit

Permalink
remove py_cache: save 13 MB image size
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed May 31, 2024
1 parent ce90959 commit 5736461
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
#
Expand Down

0 comments on commit 5736461

Please sign in to comment.