DEV Community

Discussion on: Improve your Dockerfile, best practices

Collapse
 
truecarry profile image
Tim • Edited

You should also remove package managers caches. Not sure about npm, but if you run yarn install && yarn cache clean you reduce that layer size by 50%.

Collapse
 
softchris profile image
Chris Noring

Hi Tim. Appreciate you making the article better. I'll make sure to update it and give you credit :)