Docker Image Size Optimizer
Reduces PHP Docker image footprints through multi-stage builds, Alpine transitions, and aggressive layer optimization techniques.
This skill provides actionable strategies and automated guidance for shrinking PHP Docker images, helping developers achieve up to a 75% reduction in footprint. By implementing multi-stage builds, switching to Alpine Linux bases, and performing precise dependency cleanup, it ensures faster CI/CD pipelines, lower storage costs, and improved deployment security. It is particularly effective for modern PHP architectures requiring high-performance containerization with minimal overhead.
主要功能
01Automated cleanup of build-time dependencies and virtual packages
02Alpine Linux base image conversion and compatibility guidance
03Multi-stage build configuration for production-only artifacts
04Composer optimization using production flags and autoloader tuning
05Integration with analysis tools like Dive for layer-by-layer size reporting
0645 GitHub stars
使用场景
01Accelerating CI/CD deployment times by reducing container registry transfer sizes
02Minimizing the security attack surface of production containers by removing build tools
03Reducing cloud storage costs for container registries in microservice environments