forked from platypush/platypush
Remove all cached/compiled Python files after Docker build.
This commit is contained in:
parent
2e0246413c
commit
e071e99dab
4 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,8 @@ 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 && \
|
||||||
|
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
||||||
apk cache clean
|
apk cache clean
|
||||||
|
|
||||||
EXPOSE 8008
|
EXPOSE 8008
|
||||||
|
|
|
@ -23,6 +23,8 @@ 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 && \
|
||||||
|
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
||||||
apt autoclean -y && \
|
apt autoclean -y && \
|
||||||
apt autoremove -y && \
|
apt autoremove -y && \
|
||||||
apt clean
|
apt clean
|
||||||
|
|
|
@ -22,6 +22,8 @@ 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 && \
|
||||||
|
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
||||||
dnf clean all -y
|
dnf clean all -y
|
||||||
|
|
||||||
EXPOSE 8008
|
EXPOSE 8008
|
||||||
|
|
|
@ -23,6 +23,8 @@ 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 && \
|
||||||
|
find / | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf && \
|
||||||
apt autoclean -y && \
|
apt autoclean -y && \
|
||||||
apt autoremove -y && \
|
apt autoremove -y && \
|
||||||
apt clean
|
apt clean
|
||||||
|
|
Loading…
Reference in a new issue