forked from platypush/platypush
Deeper cleanup of cache and tmp files in Dockerfile.
This commit is contained in:
parent
9e6ae42660
commit
2308c4e927
4 changed files with 18 additions and 9 deletions
|
@ -20,11 +20,13 @@ RUN /install/platypush/install/scripts/alpine/install.sh && \
|
||||||
cd /install && \
|
cd /install && \
|
||||||
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
||||||
rm -rf /install && \
|
rm -rf /install && \
|
||||||
rm -rf /root/.cache/pip && \
|
rm -rf /root/.cache && \
|
||||||
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
||||||
apk del gcc git && \
|
apk del gcc git && \
|
||||||
apk cache clean && \
|
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
|
EXPOSE 8008
|
||||||
|
|
||||||
|
|
|
@ -23,13 +23,16 @@ RUN /install/platypush/install/scripts/debian/install.sh && \
|
||||||
cd /install && \
|
cd /install && \
|
||||||
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
||||||
rm -rf /install && \
|
rm -rf /install && \
|
||||||
rm -rf /root/.cache/pip && \
|
rm -rf /root/.cache && \
|
||||||
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
||||||
apt remove -y git build-essential && \
|
apt remove -y git build-essential && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
apt autoclean -y && \
|
apt autoclean -y && \
|
||||||
apt autoremove -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
|
EXPOSE 8008
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,12 @@ RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-re
|
||||||
cd /install && \
|
cd /install && \
|
||||||
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
||||||
rm -rf /install && \
|
rm -rf /install && \
|
||||||
rm -rf /root/.cache/pip && \
|
rm -rf /root/.cache && \
|
||||||
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
|
||||||
dnf remove -y build-essential git && \
|
dnf remove -y build-essential git && \
|
||||||
dnf clean all -y && \
|
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
|
EXPOSE 8008
|
||||||
|
|
||||||
|
|
|
@ -23,13 +23,16 @@ RUN /install/platypush/install/scripts/debian/install.sh && \
|
||||||
cd /install && \
|
cd /install && \
|
||||||
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
||||||
rm -rf /install && \
|
rm -rf /install && \
|
||||||
rm -rf /root/.cache/pip && \
|
rm -rf /root/.cache && \
|
||||||
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
||||||
apt remove -y git build-essential && \
|
apt remove -y git build-essential && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
apt autoclean -y && \
|
apt autoclean -y && \
|
||||||
apt autoremove -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
|
EXPOSE 8008
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue