Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Replace npm i with npm ci for build efficiency (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEgghead27 authored Apr 22, 2024
1 parent 164b524 commit b4cec88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /usr/src/app
COPY ./ /usr/src/app
ENV NODE_ENV production
ENV PORT 80
RUN npm install --omit=dev && npm cache clean --force && npm run build
RUN npm ci --omit=dev && npm cache clean --force && npm run build
RUN rm -rf node_modules
EXPOSE 80
RUN npm install -g serve
Expand Down

0 comments on commit b4cec88

Please sign in to comment.