From acc
Generates optimized .dockerignore files for PHP projects including Laravel and Symfony. Excludes tests, docs, IDE files, dev artifacts, and caches to minimize Docker build context size.
How this skill is triggered — by the user, by Claude, or both
Slash command
/acc:create-dockerignoreThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generates optimized `.dockerignore` files for PHP projects, reducing build context size and improving build performance.
Generates optimized .dockerignore files for PHP projects, reducing build context size and improving build performance.
.dockerignore # Optimized exclusion rules
symfony.lock (Symfony), artisan (Laravel), or generic PHP.gitignore, check CI/CD config, identify test/doc directories! negations# ===========================================
# .dockerignore — PHP Project
# ===========================================
# Version Control
.git
.gitignore
.gitattributes
.gitmodules
# CI/CD
.github
.gitlab
.gitlab-ci.yml
.circleci
Jenkinsfile
bitbucket-pipelines.yml
# IDE
.idea
.vscode
*.sublime-project
*.sublime-workspace
*.swp
*.swo
*~
# Dependencies (installed in container)
vendor/
node_modules/
# Testing
tests/
test/
spec/
phpunit.xml
phpunit.xml.dist
.phpunit.result.cache
.phpunit.cache/
behat.yml
behat.yml.dist
infection.json
infection.json.dist
# Documentation
docs/
doc/
*.md
!README.md
LICENSE
# Development Files
docker-compose*.yml
docker-compose*.yaml
Dockerfile*
.docker/
Makefile
Vagrantfile
# Cache and Temporary Files
var/cache/
var/log/
storage/logs/
storage/framework/cache/
storage/framework/sessions/
storage/framework/views/
*.log
tmp/
temp/
# Local Configuration
.env
.env.local
.env.*.local
.env.test
*.local.php
docker-compose.override.yml
# Static Analysis
phpstan.neon
phpstan.neon.dist
phpstan-baseline.neon
psalm.xml
psalm.xml.dist
.php-cs-fixer.php
.php-cs-fixer.dist.php
.php-cs-fixer.cache
.phpcs-cache
phpcs.xml
phpcs.xml.dist
deptrac.yaml
rector.php
ecs.php
pint.json
# Build Artifacts
coverage/
build/
report/
reports/
clover.xml
coverage.xml
# OS Files
.DS_Store
Thumbs.db
# Package Management
composer.phar
auth.json
# Claude / AI
.claude/
CLAUDE.md
# Symfony
symfony.lock
var/
assets/
public/build/
.symfony/
.symfony.local.yaml
.phpunit/
# Laravel
storage/
bootstrap/cache/
docker-compose.sail.yml
public/hot
public/storage
public/build/
public/mix-manifest.json
_ide_helper*.php
.phpstorm.meta.php
Homestead.json
Homestead.yaml
# Required Files (do NOT exclude)
!composer.json
!composer.lock
!symfony.lock
!.env.dist
!.env.example
| Pattern | Typical savings |
|---|---|
.git | 50-500 MB |
vendor/ | 100-500 MB |
node_modules/ | 200-800 MB |
tests/ | 5-50 MB |
composer.json, composer.lock, source code (src/, app/, config/, public/), migrations.git, vendor/, tests, IDE files, local env files with secretsvar/, keep config/, public/, templates/; Laravel: exclude storage/, keep config/, public/, resources/Provide:
The generator will:
.dockerignore with universal exclusionsnpx claudepluginhub dykyi-roman/awesome-claude-code --plugin accGenerates optimized multi-stage Dockerfiles for PHP CI pipelines and production, with Composer deps, PHP extensions, testing stages, and .dockerignore for minimal images.
This skill should be used when the user says "create Dockerfile", "dockerize project", "Docker packaging", "container setup", "multi-stage build", "Docker Compose", "containerize application", "create docker-compose.yml", "create .dockerignore", "optimize Docker image", or wants to containerize their project or create Docker configurations.
Constructs and maintains .geminiignore files to filter build outputs, lock files, binaries, and logs, improving context window efficiency and reducing token costs (FinOps).