Deeper cleanup of cache and tmp files in Dockerfile.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9e6ae42660
commit
2308c4e927
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue