Skip to content

Commit

Permalink
💚 clear cache dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
moisout committed Sep 21, 2020
1 parent 0d565a7 commit dda9f6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ ENV NODE_ENV=production

COPY package.json yarn.lock ./
RUN yarn install --production --link-duplicates --ignore-optional && \
yarn modclean -n default:safe -r
yarn modclean -n default:safe -r && \
yarn cache clean

COPY . .

Expand Down

1 comment on commit dda9f6d

@moisout
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#71 Clear cache after install, reducing image size by 57%

Please sign in to comment.