From edf0fec444850d864e20ddc2068fc092e6dfc475 Mon Sep 17 00:00:00 2001 From: shortstacked Date: Fri, 27 Jun 2025 12:19:12 +0100 Subject: [PATCH] fix: Remove APK tools from base (no-changelog) (#16762) --- docker/images/n8n-base/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/images/n8n-base/Dockerfile b/docker/images/n8n-base/Dockerfile index f62ae2c84e..35fccf3938 100644 --- a/docker/images/n8n-base/Dockerfile +++ b/docker/images/n8n-base/Dockerfile @@ -20,8 +20,8 @@ RUN apk add --no-cache git openssh graphicsmagick tini tzdata ca-certificates li # Remove npm update after vulnerability is fixed in in node image RUN npm install -g full-icu@1.5.0 npm@11.4.2 -RUN apk del apk-tools && \ - rm -rf /tmp/* /root/.npm /root/.cache/node /opt/yarn* /var/cache/apk/* /lib/apk/db +RUN rm -rf /tmp/* /root/.npm /root/.cache/node /opt/yarn* && \ + apk del apk-tools # ============================================================================== # STAGE 2: Final Base Runtime Image