fix dockerfile

This commit is contained in:
sbriat 2023-01-30 16:51:44 +01:00
parent 2ca877419f
commit 31c032c04a
1 changed files with 2 additions and 2 deletions

View File

@ -46,9 +46,9 @@ RUN npm run build
ENV NODE_ENV production ENV NODE_ENV production
# Running `npm ci` removes the existing node_modules directory. # Running `npm ci` removes the existing node_modules directory.
# Passing in --only=production ensures that only the production dependencies are installed. # Passing in --omit=dev ensures that only the production dependencies are installed.
# This ensures that the node_modules directory is as optimized as possible. # This ensures that the node_modules directory is as optimized as possible.
RUN npm ci --only=production && npm cache clean --force RUN npm ci --omit=dev && npm cache clean --force
USER node USER node