fix(docker): use npm install instead of prune

This commit is contained in:
Bot 2026-02-26 14:11:51 +01:00
parent 187905d22b
commit b7293637be

View file

@ -21,8 +21,8 @@ COPY server/package*.json ./
RUN npm install --no-audit --no-fund RUN npm install --no-audit --no-fund
COPY server/ . COPY server/ .
RUN npm run build RUN npm run build
# Nur Prod-Dependencies für Runtime behalten # Nur Prod-Dependencies für Runtime behalten. rm -rf and cleanly install to prevent npm prune bugs
RUN npm prune --omit=dev RUN rm -rf node_modules && npm install --omit=dev --no-audit --no-fund
# --- Runtime image --- # --- Runtime image ---
FROM node:20-slim AS runtime FROM node:20-slim AS runtime