create-dockerignore
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "create-dockerignore" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-22cfb408c35754e70f3a23916069d6c3bf3416a086342f68c4b68f93b6ade011. Verify the upstream source and version against https://github.com/dykyi-roman/awesome-claude-code before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generates optimized .dockerignore configurations for PHP projects, recommending exclusion of test files, documentation, IDE files, and development artifacts to minimize the build context.
Introduction source: third_party · dykyi-roman · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Generates optimized .dockerignore files for PHP projects. Excludes tests, docs, IDE files, and development artifacts to minimize build context.
- Testing
- Not tested
Browse files
Frontmatter
name: create-dockerignore
description: Generates optimized .dockerignore files for PHP projects. Excludes tests, docs, IDE files, and development artifacts to minimize build context..dockerignore Generator
Generates optimized .dockerignore files for PHP projects, reducing build context size and improving build performance.
Generated Files
.dockerignore # Optimized exclusion rules
Generation Instructions
- Detect project type: Check for
symfony.lock(Symfony),artisan(Laravel), or generic PHP - Analyze existing files: Read
.gitignore, check CI/CD config, identify test/doc directories - Generate .dockerignore: Universal exclusions + framework-specific + proper
!negations
Universal PHP .dockerignore
# ===========================================
# .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-Specific Additions
# Symfony
symfony.lock
var/
assets/
public/build/
.symfony/
.symfony.local.yaml
.phpunit/
Laravel-Specific Additions
# 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
Important Negations
# Required Files (do NOT exclude)
!composer.json
!composer.lock
!symfony.lock
!.env.dist
!.env.example
Build Context Impact
| Pattern | Typical savings |
|---|---|
.git |
50-500 MB |
vendor/ |
100-500 MB |
node_modules/ |
200-800 MB |
tests/ |
5-50 MB |
Validation Rules
- Never exclude:
composer.json,composer.lock, source code (src/,app/,config/,public/), migrations - Always exclude:
.git,vendor/, tests, IDE files, local env files with secrets - Framework awareness: Symfony: exclude
var/, keepconfig/,public/,templates/; Laravel: excludestorage/, keepconfig/,public/,resources/
Usage
Provide:
- Framework (Symfony/Laravel/generic PHP)
- Monorepo structure (yes/no)
- Custom exclusions (optional)
The generator will:
- Create
.dockerignorewith universal exclusions - Add framework-specific exclusions
- Add proper negation rules for required files
- Optimize for minimal build context
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 PHP 项目 Docker 构建上下文过大的实际痛点,显著提升构建效率
- 覆盖 Symfony、Laravel 等主流框架,受众广泛,实用价值高
Highlights
- 触发词精准,明确限定为 PHP 项目,边界清晰,不易误触
Highlights
- 结构完整,Phase/步骤清晰,包含端到端示例和详细规则说明
- frontmatter 完整,文档组织良好,易于理解和使用
Highlights
- 提供了完整的 .dockerignore 模板,涵盖通用和框架特定场景
- 包含重要的否定规则(!)和验证规则,防止误排除关键文件,可靠性高
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.