Deeper cleanup of cache and tmp files in Dockerfile.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabio Manganiello 2024-09-30 22:22:47 +02:00
parent 9e6ae42660
commit 2308c4e927
Signed by: blacklight
GPG key ID: D90FBA7F76362774
4 changed files with 18 additions and 9 deletions

View file

@ -20,11 +20,13 @@ RUN /install/platypush/install/scripts/alpine/install.sh && \
cd /install && \
pip install -U --no-input --no-cache-dir . --break-system-packages && \
rm -rf /install && \
rm -rf /root/.cache/pip && \
rm -rf /root/.cache && \
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
apk del gcc git && \
apk cache clean && \
rm -rf /var/cache/apk/*
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EXPOSE 8008

View file

@ -23,13 +23,16 @@ RUN /install/platypush/install/scripts/debian/install.sh && \
cd /install && \
pip install -U --no-input --no-cache-dir . --break-system-packages && \
rm -rf /install && \
rm -rf /root/.cache/pip && \
rm -rf /root/.cache && \
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
apt remove -y git build-essential && \
rm -rf /var/lib/apt/lists/* && \
apt autoclean -y && \
apt autoremove -y && \
apt clean
apt clean && \
rm -rf /var/cache/apt/* && \
rm -rf /tmp/* && \
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EXPOSE 8008

View file

@ -22,11 +22,12 @@ RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-re
cd /install && \
pip install -U --no-input --no-cache-dir . --break-system-packages && \
rm -rf /install && \
rm -rf /root/.cache/pip && \
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
rm -rf /root/.cache && \
dnf remove -y build-essential git && \
dnf clean all -y && \
rm -rf /var/cache/dnf/*
rm -rf /var/cache/dnf/* && \
rm -rf /tmp/* && \
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EXPOSE 8008

View file

@ -23,13 +23,16 @@ RUN /install/platypush/install/scripts/debian/install.sh && \
cd /install && \
pip install -U --no-input --no-cache-dir . --break-system-packages && \
rm -rf /install && \
rm -rf /root/.cache/pip && \
rm -rf /root/.cache && \
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
apt remove -y git build-essential && \
rm -rf /var/lib/apt/lists/* && \
apt autoclean -y && \
apt autoremove -y && \
apt clean
apt clean && \
rm -rf /var/cache/apt/* && \
rm -rf /tmp/* && \
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EXPOSE 8008