ImageDiet

ImageDiet is a web app + CLI that finds and removes container image bloat with minimal risk. You point it at a Dockerfile (or a built image in your registry), and it produces a smaller, reproducible alternative: multi-stage builds, slimmer base images, better layer ordering, dependency pruning, and caching fixes. It also flags common foot-guns like leaking build tools into runtime, oversized language runtimes, duplicate packages, and unnecessary OS packages. The output is a pull request with a rewritten Dockerfile plus a report showing size savings, build-time impact, and security tradeoffs. It integrates with GitHub Actions/GitLab CI so teams can set “max image size” budgets and fail builds when they regress. This is not magic: it won’t fix fundamentally huge apps, but it can reliably cut 20–60% in many real-world services and reduce registry/network costs.

← Back to idea list