Over the weekend, our CI failed to merge changes because our CI Docker image got too big. While trying to fix that, I looked at existing guides on how to slim container images down. However, those felt really incomplete. Most of them did not explain how one debugs problems, or they just missed a lot of details. That is why I tried to write a new complete guide on how to slim down container images which contains all my findings, and with our CI image as a running example.
Since I had a pretty rough time over the weekend, I'd like to share that with you. I would appreciate your feedback, and if you know something that is missing, please let me know!