Merge branch 'fixDockerfile' into 'main'
fix dockerfile See merge request v3/services/logger!4
This commit is contained in:
commit
ac13d968e4
|
@ -46,9 +46,9 @@ RUN npm run build
|
|||
ENV NODE_ENV production
|
||||
|
||||
# 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.
|
||||
RUN npm ci --only=production && npm cache clean --force
|
||||
RUN npm ci --omit=dev && npm cache clean --force
|
||||
|
||||
USER node
|
||||
|
||||
|
|
Loading…
Reference in New Issue