update npm prune command (#9470)

This commit is contained in:
chris48s
2023-08-12 22:46:03 +01:00
committed by GitHub
parent e4dcec6864
commit d8480a66c4

View File

@@ -15,7 +15,7 @@ RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci
COPY . /usr/src/app
RUN npm run build
RUN npm prune --production
RUN npm prune --omit=dev
RUN npm cache clean --force
# Use multi-stage build to reduce size