Frameworks
Drupal .dockerignore
.dockerignore for frameworks projects
.dockerignore Content
# ============================================================================
# Created by https://dockerignore.com/
# COMPREHENSIVE FRAMEWORK TEMPLATE for Drupal
# Website: https://www.drupal.org/
# Repository: https://github.com/drupal/drupal
# ============================================================================
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: COMPREHENSIVE FRAMEWORK TEMPLATE
# • PURPOSE: Drupal 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 Drupal setup
# • OFFICIAL SOURCES: Drupal community patterns and best practices
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# SECURITY & SENSITIVE DATA PROTECTION (ALWAYS FIRST!)
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CRITICAL: Prevent sensitive data from being included in Docker images
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# ENVIRONMENT VARIABLES & CONFIGURATION FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# 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
.env.development.local
.env.example
.env.local
.env.production
.env.production.local
.env.sample
.env.staging
.env.staging.local
.env.template
.env.test
.env.test.local
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# APPLICATION SECRETS & CREDENTIALS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# 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.*
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DRUPAL-SPECIFIC PATTERNS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Drupal-specific files and directories that should be excluded
**//contrib/
**/aggregate/
**/config/
**/config_*/
**/css/
**/ctools/
**/dblog/
**/docs/
**/documentation/
**/entity_cache/
**/examples/
**/features/
**/imagecache/
**/js/
**/libraries/
**/patches/
**/php/
**/samples/
**/simpletest/
**/sites/*/config/
**/sites/*/config_*/
**/sites/*/files/
**/sites/*/private/
**/sites/*/translations/
**/sites/simpletest/
**/twig/
**/var/
**/var/cache/
**/var/page_cache/
**/var/session/
**/vendor/
**/views_cache/
**/watchdog/
/.behat.yml
/.behat.yml.dist
/.php-cs-fixer.dist.php
/.php-cs-fixer.php
/.phpcs.xml
/.phpcs.xml.dist
/behat.yml
/behat.yml.dist
/CHANGELOG.txt
/COPYRIGHT.txt
/core/CHANGELOG.txt
/core/COPYRIGHT.txt
/core/INSTALL*.txt
/core/MAINTAINERS.txt
/core/UPGRADE*.txt
/INSTALL*.txt
/LICENSE.txt
/MAINTAINERS.txt
/php-error.log
/php-fpm-error.log
/phpcs.xml
/phpcs.xml.dist
/phpunit.xml
/phpunit.xml.dist
/README.txt
/sites/*/development.services.yml
/sites/*/services.local.yml
/sites/*/settings.local.php
/UPGRADE*.txt
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEPENDENCY MANAGEMENT & PACKAGE CACHE
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Package manager files and dependency directories
**/.npm/
**/.npm/_logs/
**/.pnpm-store/
**/.pnpm/
**/.yarn/
**/bower_components/
**/modules/custom/*/node_modules/
**/node_modules/
**/themes/custom/*/node_modules/
.npmignore
.npmrc
.npmrc.*
.yarn/install-state.gz
.yarnrc
.yarnrc.yml
/bower.json
/composer.json
/package.json
npm-debug.log*
pnpm-debug.log*
pnpm-workspace.yaml
yarn-error.log
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# BUILD ARTIFACTS & DISTRIBUTION PACKAGES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Compiled code, build outputs, and distribution packages
**/.nyc_output/
**/.out/
**/.output/
**/build/
**/dist/
**/modules/custom/*/build/
**/modules/custom/*/dist/
**/public/build/
**/themes/custom/*/build/
**/themes/custom/*/dist/
.tsbuildinfo
tsconfig.*.tsbuildinfo
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEVELOPMENT & RUNTIME ARTIFACTS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Development tools cache, runtime data, and temporary files
**/.cache/
**/.parcel-cache/
**/.turbo/
**/.vite-cache/
**/.vite/
**/sites/*/tmp/
**/temp/
**/tmp/
**/var/tmp/
*.cache
*.temp
*.tmp
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# LOGS & DEBUG FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Log files and debug output
**/logs/
*.log
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# TESTING & QUALITY ASSURANCE ARTIFACTS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Test outputs, coverage reports, and quality tool artifacts
**/.jest-cache/
**/__tests__/__snapshots__/
**/coverage/
**/jest-cache/
**/test-results/
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# VERSION CONTROL & REPOSITORY MANAGEMENT
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Version control system files and directories
**/.bzr/
**/.cvs/
**/.git/
**/.hg/
**/.svn/
.gitattributes
.gitignore
.gitmodules
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CONFIGURATION & CUSTOMIZATION
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Project-specific configuration that should not be shared
.env.testing
jsconfig.json
vitest.config.*.timestamp-*
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# MODERN DEVELOPMENT TOOLS & FRAMEWORKS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Patterns for modern development tools, frameworks, and build systems
**/.nx/
**/.nx/cache/
**/.pnp/
.pnp.cjs
.pnp.js
.pnp.loader.mjs
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# OTHER FILES & DIRECTORIES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Miscellaneous files and directories
*.bak
*.old
*.orig
*.save
*.sql
*.sql.gz
*.sqlite
*.swo
*.swp
*~
._*
.babelrc
.babelrc.*
.browserslistrc
.DS_Store
.DS_Store?
.eslintcache
.eslintignore
.eslintrc
.eslintrc.*
.jsbeautifyrc
.jscsrc
.jshintrc
.prettiercache
.prettierignore
.prettierrc
.prettierrc.*
.Spotlight-V100
.stylelintcache
.stylelintignore
.stylelintrc
.stylelintrc.*
.Trashes
/Gruntfile.js
/gulpfile.js
/webpack.config.js
/webpack.mix.js
desktop.ini
ehthumbs.db
Thumbs.db