Docker Layer Efficiency Checker
Optimizes PHP Dockerfile structures by analyzing layer ordering, cache utilization, and build performance.
This skill provides a comprehensive auditing tool for PHP-based Docker containers, ensuring they follow industry best practices for build speed and image size. It identifies common anti-patterns such as copying source code before installing dependencies, redundant RUN commands, and improper ARG placement that busts the cache. By implementing these optimizations, developers can significantly reduce build times in CI/CD pipelines and improve local development efficiency through better layer reuse and BuildKit cache mount implementation.
主要功能
01Analyzes Dockerfile layer ordering against PHP-specific best practices
02Detects cache-busting ARG and COPY anti-patterns that slow down builds
03Generates a detailed efficiency score and actionable optimization report
04Provides BuildKit cache mount recommendations for Composer and NPM package managers
0545 GitHub stars
06Identifies mergeable RUN commands to reduce redundant image layers
使用场景
01Ensuring optimal dependency caching for PHP and Node.js projects
02Auditing existing legacy Dockerfiles to improve CI/CD pipeline speed
03Standardizing Docker build patterns across a development team