Most Docker images are 3–10x larger than they need to be.
DockerDiet is a free static analysis tool that takes your Dockerfile
as input and gives you back:
→ An estimated image size breakdown by layer
→ A list of anti-patterns detected (with severity: critical / high / medium / low)
→ An automatically rewritten, optimized Dockerfile
→ Infrastructure cost implications (storage cost, pull time, CI/CD speed)
→ Side-by-side diff of original vs optimized