mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-28 00:15: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
|
ENV NODE_ENV production
|
||||||
USER node
|
USER node
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --production
|
RUN npm ci --omit=dev
|
||||||
COPY --from=build --chown=node:node /app/dist ./dist
|
COPY --from=build /app/dist ./dist
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", "./dist/index.js"]
|
CMD ["node", "./dist/index.js"]
|
||||||
|
Loading…
Reference in New Issue
Block a user