From ec08dd55547981bb20875e0970251b8fbf30fafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Sat, 23 Mar 2024 00:07:10 +0100 Subject: [PATCH] Do not cache packages during installation --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a19ee32ad..51f8ce190 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,7 +66,7 @@ ARG INSTALL_ABIWORD= ARG INSTALL_SOFFICE= # Install dependencies required for modifying access. -RUN apk add shadow bash +RUN apk add --no-cache shadow bash # Follow the principle of least privilege: run as unprivileged user. # # Running as non-root enables running this image in platforms like OpenShift @@ -93,7 +93,7 @@ RUN \ mkdir -p /usr/share/man/man1 && \ npm install pnpm -g && \ apk update && apk upgrade && \ - apk add \ + apk add --no-cache \ ca-certificates \ curl \ git \