[1]: https://docs.docker.com/develop/develop-images/multistage-bu...
Also you need to keep those huge images, if you want to have any reasonable caching. Otherwise builds will take forever.