From b7293637beb7ecca6b7e7d5d7ef4b3b28d4fa17c Mon Sep 17 00:00:00 2001 From: Bot Date: Thu, 26 Feb 2026 14:11:51 +0100 Subject: [PATCH] fix(docker): use npm install instead of prune --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 91f8191..b99af26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,8 @@ COPY server/package*.json ./ RUN npm install --no-audit --no-fund COPY server/ . RUN npm run build -# Nur Prod-Dependencies für Runtime behalten -RUN npm prune --omit=dev +# Nur Prod-Dependencies für Runtime behalten. rm -rf and cleanly install to prevent npm prune bugs +RUN rm -rf node_modules && npm install --omit=dev --no-audit --no-fund # --- Runtime image --- FROM node:20-slim AS runtime