mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-02-01 22:20:43 +00:00
fix dockerfile
This commit is contained in:
@@ -47,10 +47,11 @@ RUN npm run build
|
|||||||
|
|
||||||
# Set NODE_ENV environment variable
|
# Set NODE_ENV environment variable
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user