Docker Antipattern Detector
Analyzes Dockerfiles to identify and resolve common antipatterns that cause bloated images, poor caching, and unreliable builds.
This skill serves as a specialized linter and optimization guide for Docker environments, specifically tailored to identify issues in PHP and general-purpose container configurations. It scans Dockerfiles and project structures to detect 11 critical antipatterns, such as improper layer ordering, missing .dockerignore files, and non-deterministic tags. By providing severity-ranked feedback and actionable code fixes, it helps developers significantly reduce image sizes, speed up CI/CD pipelines through optimized cache utilization, and improve the overall security and reliability of containerized applications.
主要功能
01Detects image bloat caused by uncleaned package caches and development tools
0245 GitHub stars
03Provides severity-ranked reports with specific 'Good' vs. 'Bad' code examples
04Identifies cache-busting layer ordering for dependency management
05Verifies the presence and configuration of .dockerignore files
06Highlights reliability issues like using the 'latest' tag or improper signal handling
使用场景
01Optimizing slow CI/CD build times by improving Docker layer caching strategy
02Reducing production image sizes for faster deployment and lower storage costs
03Auditing legacy Dockerfiles for security smells and non-deterministic build configurations