PHP Dockerignore Generator
Generates optimized .dockerignore files for PHP projects to minimize build context and improve performance.
The create-dockerignore skill streamlines the containerization process by intelligently generating .dockerignore files tailored for PHP environments. It automatically detects framework-specific structures for Symfony and Laravel, applying precise exclusion rules for test suites, documentation, IDE artifacts, and development-only dependencies. By optimizing the Docker build context, this skill helps developers significantly reduce image build times, minimize storage overhead, and enhance security by ensuring local secrets and configuration files are never included in production images.
Características Principales
01Smart negation patterns to protect essential files like composer.json and lock files
02Reduction of build context size by excluding vendor and node_modules directories
0345 GitHub stars
04Customizable support for monorepos and specific project directory overrides
05Automatic detection of Symfony, Laravel, and generic PHP project structures
06Universal exclusion rules for Git, IDEs, and local development artifacts
Casos de Uso
01Hardening production containers by excluding local environment files and secrets
02Standardizing Docker configurations across multiple PHP microservices
03Optimizing CI/CD pipelines by reducing the data sent to the Docker daemon