mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-27 16:05:48 +01:00
Use recommended --omit=dev flag in runtime's npm ci
This commit is contained in:
parent
2199b3b998
commit
f4295f7c57
@ -9,7 +9,7 @@ WORKDIR /app
|
||||
ENV NODE_ENV production
|
||||
USER node
|
||||
COPY package*.json ./
|
||||
RUN npm ci --production
|
||||
COPY --from=build --chown=node:node /app/dist ./dist
|
||||
RUN npm ci --omit=dev
|
||||
COPY --from=build /app/dist ./dist
|
||||
EXPOSE 3000
|
||||
CMD ["node", "./dist/index.js"]
|
||||
|
Loading…
Reference in New Issue
Block a user