fix(docker): use npm install instead of prune
This commit is contained in:
parent
187905d22b
commit
b7293637be
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue