Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 78 additions & 35 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,33 @@
# Reduces build context size and speeds up builds
# ============================================

# ---------------------------
# Version Control
# ---------------------------
.git
.github/
.gitignore
.gitattributes
.gitmodules

# Environment & Configuration
# ---------------------------
# Environment & Secrets
# ---------------------------
.env
.env.*
!.env.example
*.env.local
*.env.*.local
certs/
ssl/*.pem
ssl/*.crt
ssl/*.key
ssl/*.csr
!ssl/*.example

# ---------------------------
# IDE & Editors
# ---------------------------
.vscode/
.idea/
*.swp
Expand All @@ -34,7 +46,9 @@ Thumbs.db
.phpstorm.meta.php
.phpunit.result.cache

# ---------------------------
# Documentation
# ---------------------------
*.md
README*
CHANGELOG*
Expand All @@ -49,7 +63,9 @@ UPGRADE
docs/
documentation/

# ---------------------------
# Build Scripts & CI/CD
# ---------------------------
build.sh
build-from-env.sh
diagnose.sh
Expand All @@ -61,21 +77,27 @@ Makefile
bitbucket-pipelines.yml
azure-pipelines.yml

# Docker Files (prevent recursion)
# ---------------------------
# Docker / Compose
# ---------------------------
Dockerfile*
docker-compose*.yml
docker-compose*.yaml
.dockerignore
Dockerfile.funcional
# Application Runtime (if not needed in image)
var/cache/*
var/log/*
var/sessions/*

# ---------------------------
# Dependencies / Runtime Cache
# ---------------------------
vendor/
node_modules/
bower_components/
var/cache/*
var/log/*
var/sessions/*

# Testing
# ---------------------------
# Testing / Coverage
# ---------------------------
tests/
phpunit.xml*
.phpunit/
Expand All @@ -85,7 +107,9 @@ codeception.yml
coverage/
.nyc_output/

# ---------------------------
# Temporary Files
# ---------------------------
*.log
*.tmp
*.temp
Expand All @@ -98,61 +122,55 @@ coverage/
*.rej
*.patch

# OS Files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Desktop.ini


# Package Managers Artifacts
# ---------------------------
# Package Managers
# ---------------------------
composer.phar
package-lock.json
yarn.lock
pnpm-lock.yaml
yarn-error.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*


# Archive Files
# ---------------------------
# Archives
# ---------------------------
*.tar
*.tar.gz
*.tgz
*.zip
*.rar
*.7z

# Database
# ---------------------------
# Database dumps
# ---------------------------
*.sql
*.sqlite
*.db
data/
database/

# Deployment
# ---------------------------
# Deployment artifacts
# ---------------------------
deployment/
deploy/
.deploy*/

# Monitoring & Analytics
# ---------------------------
# Monitoring / Observability
# ---------------------------
# ignore raw configs if you ship them by volume only
monitoring/
grafana/
prometheus/

# SSL Certificates (keep templates only)
ssl/*.pem
ssl/*.crt
ssl/*.key
ssl/*.csr
!ssl/*.example

# Application specific (customize as needed)
# ---------------------------
# Application-specific
# ---------------------------
app/cache/
app/logs/
app/sessions/
Expand All @@ -162,10 +180,35 @@ public/uploads/
public/storage/
public/hot

# Keep these files/folders (explicitly include)
# ---------------------------
# Keep these (explicitly include)
# ---------------------------
!nginx/
!php/
!redis/
!supervisor/
!scripts/
!app/public/index.php
!app/public/index.php
# Example configs (mounted via volumes only, never baked in)
example/config/
example/config/**
# Root-level runtime logs/artifacts (avoid sending to build context)
logs/
logs/**
*.log,
*.sql,
*.sqlite
# Local developer shells / env managers
.envrc
.direnv/
.direnv/**

# Language/tool caches (speed up context)
.composer/
.cache/
.npm/
.node-gyp/

# OS/user junk (extras)
Desktop.ini
Icon?
Loading