Languages

PHP .dockerignore

.dockerignore for languages projects

View on GitHub

.dockerignore Content

# ============================================================================
# Created by https://dockerignore.com/
# LANGUAGE-SPECIFIC TEMPLATE for PHP
# Website: https://www.php.net/
# Repository: https://github.com/php/php-src
# ============================================================================

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: LANGUAGE-SPECIFIC TEMPLATE
# • PURPOSE: PHP-specific ignore patterns
# • DESIGN PHILOSOPHY: Contains only PHP-specific patterns (no security patterns)
# • COMBINATION GUIDANCE: Combine with framework or common templates as needed
# • SECURITY CONSIDERATIONS: Does NOT include security patterns (use common/security.dockerignore)
# • BEST PRACTICES: Combine with security template for complete protection
# • OFFICIAL SOURCES: PHP community patterns and best practices

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP-SPECIFIC PATTERNS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP-specific files and directories

**/vendor/
composer.phar
config.php
configuration.php
local-config.php

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP BUILD ARTIFACTS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP build artifacts and output directories

**/build/
**/dist/

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP CACHE AND TEMPORARY FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP cache and temporary files

**/.cache/
**/temp/
**/tmp/
*.cache
*.temp
*.tmp

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP LOGS AND DEBUG FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP logs and debug files

**/logs/
*.log
*.log.*

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP TESTING AND COVERAGE
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# PHP testing and coverage artifacts

**/coverage/
**/test-results/
*.coverage
*.coverage.*

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# VERSION CONTROL AND BACKUP FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Version control directories and backup files

**/.bzr/
**/.cvs/
**/.git/
**/.hg/
**/.svn/
*.bak
*.old
*.orig
*.save
*.swo
*.swp
*~

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# OPERATING SYSTEM FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Operating system-specific files

._*
.DS_Store
.DS_Store?
.gitattributes
.gitignore
.gitmodules
.Spotlight-V100
.Trashes
desktop.ini
ehthumbs.db
Thumbs.db

Note: This file is fetched from GitHub and cached for 7 days.