Using multi-stage builds to make your docker image 10x smaller

Clean up your Docker images by leaving behind unnecessary tools

Mike Huls
Towards Data Science
6 min readFeb 18, 2022

--

If you’re done building you need to clean up your tools (image by Cesar Carlevarino Aragon on unsplash)

In this short article we build an image in multiple stages to significantly reduce the size of our docker image. In the end we’ll have an image that does the exact same thing but is almost 10 times smaller in size! The way we do this is by leaving behind…

--

--