Frameworks
WordPress .dockerignore
.dockerignore for frameworks projects
.dockerignore Content
# ============================================================================
# Created by https://dockerignore.com/
# COMPREHENSIVE FRAMEWORK TEMPLATE for WordPress
# Website: https://wordpress.org/
# Repository: https://github.com/WordPress/WordPress
# ============================================================================
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: COMPREHENSIVE FRAMEWORK TEMPLATE
# • PURPOSE: WordPress framework specific ignore patterns
# • DESIGN PHILOSOPHY: Self-contained with all necessary patterns including security
# • COMBINATION GUIDANCE: Use standalone - no need to combine with other templates
# • SECURITY CONSIDERATIONS: Includes security patterns for .env files and credentials
# • BEST PRACTICES: Review before use, test with your specific WordPress setup
# • OFFICIAL SOURCES: WordPress official repository patterns and best practices
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# SECURITY & SENSITIVE DATA PROTECTION (ALWAYS FIRST!)
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CRITICAL: Prevent sensitive data from being included in Docker images
# Environment files contain sensitive API keys, database credentials,
# and other secrets that must not be included in Docker images
.env
.env.*
.env.local
.env.development.local
.env.production.local
.env.test.local
# Application secrets, credentials, and sensitive configuration files
**/config/credentials.*
**/config/secrets.*
**/keys/
**/passwords/
**/private/
**/secrets/
*.auth
*.authz
*.password
*.secret
*.secrets
*.token
*_tokens
*password*
apikeys.*
appsettings.Development.json
appsettings.Local.json
appsettings.Staging.json
connectionstrings.config
credentials
database.ini
database.yml
dbconfig.xml
secrets.json
secrets.yaml
secrets.yml
tokens.*
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# BUILD ARTIFACTS & DISTRIBUTION
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Compiled assets, build outputs, and distribution directories
**/.nyc_output/
**/.out/
**/.output/
**/assets/build/
**/build/
**/dist/
**/public/build/
.tsbuildinfo
tsconfig.*.tsbuildinfo
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEPENDENCY MANAGEMENT & PACKAGE CACHE
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Package manager directories and lock files for reproducible builds.
# IMPORTANT: Lock files (package-lock.json, yarn.lock, etc.) should generally be tracked
# in version control for reproducible builds. Only exclude them if you have specific reasons.
**/.npm/
**/.npm/_logs/
**/.pnpm-store/
**/.pnpm/
**/.yarn/
**/bower_components/
**/node_modules/
.npmignore
.npmrc
.npmrc.*
.yarn/install-state.gz
.yarnrc
.yarnrc.yml
npm-debug.log*
pnpm-debug.log*
yarn-error.log
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEVELOPMENT & RUNTIME ARTIFACTS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Cache directories, temporary files, runtime artifacts, and logs
**/.babel-cache/
**/.cache/
**/.nx/
**/.nx/cache/
**/.pnp/
**/.parcel-cache/
**/.turbo/
**/.w3tc/
**/temp/
**/tmp/
*.cache
*.temp
*.tmp
# Application logs, debug files, and error logs
**/logs/
*.log
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# TESTING & QUALITY ASSURANCE
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Test results, coverage reports, and testing artifacts
**/.jest-cache/
**/__tests__/__snapshots__/
**/coverage/
**/jest-cache/
**/test-results/
.env.testing
jsconfig.json
vitest.config.*.timestamp-*
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DOCUMENTATION & EXAMPLES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Example files, documentation, and sample configurations
.env.example
.env.sample
.env.template
/wp-config-sample.php
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# TOOL-SPECIFIC PATTERNS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Build tools, task runners, development tool configurations, and WordPress-specific patterns
# PHP development tools
/.php-cs-fixer.dist.php
/.php-cs-fixer.php
/.phpcs.xml.dist
/.phpcs.xml
/phpcs.xml.dist
/phpcs.xml
/phpunit.xml.dist
/phpunit.xml
# JavaScript build tools
/Gruntfile.js
/gulpfile.js
/webpack.config.js
/webpack.mix.js
# Build tool configuration files
.babelrc
.babelrc.*
.browserslistrc
.eslintcache
.eslintignore
.eslintrc
.eslintrc.*
.jsbeautifyrc
.jscsrc
.jshintrc
.pnp.cjs
.pnp.js
.pnp.loader.mjs
.prettiercache
.prettierignore
.prettierrc
.prettierrc.*
.stylelintcache
.stylelintignore
.stylelintrc
.stylelintrc.*
/bower.json
/composer.json
/package.json
pnpm-workspace.yaml
# WordPress-specific directories and files
**/vendor/
**/wp-content/ai1wm-backups/
**/wp-content/backup-db/
**/wp-content/backup/
**/wp-content/cache/
**/wp-content/upgrade/
**/wp-content/uploads/
**/wp-content/w3tc-config/
/local-config.php
/wp-config-local.php
/wp-content/debug.log
/wp-content/error_log
/wp-content/plugins/hello.php
/wp-content/themes/twentytwenty*
/wp-content/themes/twentytwentyfive*
/wp-content/themes/twentytwentyfour*
/wp-content/themes/twentytwentyone*
/wp-content/themes/twentytwentythree*
/wp-content/themes/twentytwentytwo*
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# IDE/EDITOR SPECIFIC FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Editor configuration files, temporary files, IDE artifacts, and version control
# Editor and IDE artifacts
*.bak
*.old
*.orig
*.save
*.swo
*.swp
*~
._*
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
desktop.ini
ehthumbs.db
Thumbs.db
# Version control system directories
**/.bzr/
**/.cvs/
**/.git/
**/.hg/
**/.svn/
.gitattributes
.gitignore
.gitmodules