diff --git a/backend/Dockerfile b/backend/Dockerfile index 05e2ad3..9bb2015 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -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 diff --git a/cms/cms/Dockerfile b/cms/cms/Dockerfile index 000975b..c68c396 100644 --- a/cms/cms/Dockerfile +++ b/cms/cms/Dockerfile @@ -17,8 +17,8 @@ COPY . . # Build Strapi 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