Frameworks

Magento .dockerignore

.dockerignore for frameworks projects

View on GitHub

.dockerignore Content

# ============================================================================
# Created by https://dockerignore.com/
# COMPREHENSIVE FRAMEWORK TEMPLATE for Magento
# Website: https://business.adobe.com/products/magento/magento-commerce.html
# Repository: https://github.com/magento/magento2
# ============================================================================

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: COMPREHENSIVE FRAMEWORK TEMPLATE
# • PURPOSE: Magento e-commerce platform 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 Magento setup
# • OFFICIAL SOURCES: Magento 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
.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
**/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 AND OUTPUT
/.php-cs-fixer.dist.php
/.phpcs.xml.dist
/phpcs.xml.dist
/phpunit.xml.dist

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CACHE AND TEMPORARY FILES
**/.cache/
**/temp/
**/tmp/
**/var/tmp/
*.cache
*.temp
*.tmp

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CONFIGURATION AND ENVIRONMENT
*.env
*.env.*

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# TESTING AND COVERAGE
**/coverage/

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# OTHER
**/dev/
**/dev/docs/
**/dev/tests/
**/docs/
**/documentation/
**/examples/
**/generated/
**/generated/code/
**/generated/metadata/
**/patches/
**/pub/media/
**/pub/static/
**/samples/
**/var/
**/var/backups/
**/var/cache/
**/var/debug/
**/var/export/
**/var/log/
**/var/page_cache/
**/var/report/
**/var/session/
**/var/view_preprocessed/
*.sql
*.sql.gz
*.sqlite
/.php-cs-fixer.php
/.phpcs.xml
/app/etc/config.local.php
/app/etc/config.php
/app/etc/env.php
/CHANGELOG.md
/COPYING.txt
/error_log
/INSTALL*.txt
/LICENSE.txt
/LICENSE_AFL.txt
/LICENSE_EE.txt
/php-error.log
/php-fpm-error.log
/phpcs.xml
/phpunit.xml
/README.md
/RELEASE_NOTES.txt
/UPGRADE*.txt

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