refactor: use npm prune --omit=dev instead of deprecated --production flag

This commit is contained in:
dimitar committed 2026-02-24 17:41:38 +01:00
1 parent ed723bc429
commit 2efdf20f88
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -17,8 +17,8 @@ COPY . .
# Build TypeScript
RUN npm run build
# Prune devDependencies after build
RUN npm prune --production
# Prune devDependencies after build (suppress warning)
RUN npm prune --omit=dev
# Production stage
FROM node:20-alpine