Skip to content

Commit

Permalink
Dockerfile: Clean npm cache after build
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Aug 14, 2023
1 parent 4714590 commit fba283b
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 @@ -2,6 +2,6 @@ FROM node:20-alpine
RUN mkdir /app
WORKDIR /app
COPY package*.json /app
RUN npm install
RUN npm install && npm cache clean --force
COPY . /app
CMD ["npm", "start"]

0 comments on commit fba283b

Please sign in to comment.