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

This commit is contained in:
echo 2026-02-24 17:41:38 +01:00
parent ed723bc429
commit 2efdf20f88
2 changed files with 4 additions and 4 deletions

View File

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

View File

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