🐳 Clean apt package cache in all Dockerfiles

This commit is contained in:
David Barragán Merino 2026-06-12 13:10:39 +02:00
parent be11383d38
commit dc7a91f009
3 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,7 @@ RUN set -ex; \
ca-certificates \
curl \
; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
RUN set -eux; \
@ -115,13 +116,13 @@ RUN set -ex; \
woff2 \
; \
find tmp/usr/share/zoneinfo/* -type d ! -name 'Etc' |xargs rm -rf; \
apt-get clean; \
rm -rf /var/lib /var/cache; \
rm -rf /usr/include; \
mkdir -p /opt/data/assets; \
mkdir -p /opt/penpot; \
chown -R penpot:penpot /opt/penpot; \
chown -R penpot:penpot /opt/data; \
rm -rf /var/lib/apt/lists/*;
chown -R penpot:penpot /opt/data;
COPY --from=build /opt/jre /opt/jre
COPY --from=build /opt/node /opt/node

View File

@ -20,6 +20,7 @@ RUN set -ex; \
locales \
ca-certificates \
; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*; \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
locale-gen; \
@ -81,6 +82,7 @@ RUN set -ex; \
libzip4t64 \
libzstd1 \
; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*;
RUN set -eux; \

View File

@ -20,6 +20,7 @@ RUN set -ex; \
locales \
ca-certificates \
; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*; \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
locale-gen; \