33# Reduces build context size and speeds up builds
44# ============================================
55
6+ # ---------------------------
67# Version Control
8+ # ---------------------------
79.git
810.github /
911.gitignore
1012.gitattributes
1113.gitmodules
1214
13- # Environment & Configuration
15+ # ---------------------------
16+ # Environment & Secrets
17+ # ---------------------------
1418.env
1519.env. *
1620! .env.example
1721* .env.local
1822* .env. * .local
23+ certs /
24+ ssl /* .pem
25+ ssl /* .crt
26+ ssl /* .key
27+ ssl /* .csr
28+ ! ssl /* .example
1929
30+ # ---------------------------
2031# IDE & Editors
32+ # ---------------------------
2133.vscode /
2234.idea /
2335* .swp
@@ -34,7 +46,9 @@ Thumbs.db
3446.phpstorm.meta.php
3547.phpunit.result.cache
3648
49+ # ---------------------------
3750# Documentation
51+ # ---------------------------
3852* .md
3953README *
4054CHANGELOG *
@@ -49,7 +63,9 @@ UPGRADE
4963docs /
5064documentation /
5165
66+ # ---------------------------
5267# Build Scripts & CI/CD
68+ # ---------------------------
5369build.sh
5470build-from-env.sh
5571diagnose.sh
@@ -61,21 +77,27 @@ Makefile
6177bitbucket-pipelines.yml
6278azure-pipelines.yml
6379
64- # Docker Files (prevent recursion)
80+ # ---------------------------
81+ # Docker / Compose
82+ # ---------------------------
6583Dockerfile *
6684docker-compose * .yml
6785docker-compose * .yaml
6886.dockerignore
69- Dockerfile.funcional
70- # Application Runtime (if not needed in image)
71- var /cache /*
72- var /log /*
73- var /sessions /*
87+
88+ # ---------------------------
89+ # Dependencies / Runtime Cache
90+ # ---------------------------
7491vendor /
7592node_modules /
7693bower_components /
94+ var /cache /*
95+ var /log /*
96+ var /sessions /*
7797
78- # Testing
98+ # ---------------------------
99+ # Testing / Coverage
100+ # ---------------------------
79101tests /
80102phpunit.xml *
81103.phpunit /
@@ -85,7 +107,9 @@ codeception.yml
85107coverage /
86108.nyc_output /
87109
110+ # ---------------------------
88111# Temporary Files
112+ # ---------------------------
89113* .log
90114* .tmp
91115* .temp
@@ -98,61 +122,55 @@ coverage/
98122* .rej
99123* .patch
100124
101- # OS Files
102- .DS_Store
103- .DS_Store ?
104- ._ *
105- .Spotlight-V100
106- .Trashes
107- ehthumbs.db
108- Desktop.ini
109-
110-
111- # Package Managers Artifacts
125+ # ---------------------------
126+ # Package Managers
127+ # ---------------------------
112128composer.phar
113129package-lock.json
114130yarn.lock
115131pnpm-lock.yaml
116132yarn-error.log
117133npm-debug.log *
118134yarn-debug.log *
119- yarn-error.log *
120135lerna-debug.log *
121136
122-
123- # Archive Files
137+ # ---------------------------
138+ # Archives
139+ # ---------------------------
124140* .tar
125141* .tar.gz
126142* .tgz
127143* .zip
128144* .rar
129145* .7z
130146
131- # Database
147+ # ---------------------------
148+ # Database dumps
149+ # ---------------------------
132150* .sql
133151* .sqlite
134152* .db
135153data /
136154database /
137155
138- # Deployment
156+ # ---------------------------
157+ # Deployment artifacts
158+ # ---------------------------
139159deployment /
140160deploy /
141161.deploy * /
142162
143- # Monitoring & Analytics
163+ # ---------------------------
164+ # Monitoring / Observability
165+ # ---------------------------
166+ # ignore raw configs if you ship them by volume only
144167monitoring /
145168grafana /
146169prometheus /
147170
148- # SSL Certificates (keep templates only)
149- ssl /* .pem
150- ssl /* .crt
151- ssl /* .key
152- ssl /* .csr
153- ! ssl /* .example
154-
155- # Application specific (customize as needed)
171+ # ---------------------------
172+ # Application-specific
173+ # ---------------------------
156174app /cache /
157175app /logs /
158176app /sessions /
@@ -162,10 +180,35 @@ public/uploads/
162180public /storage /
163181public /hot
164182
165- # Keep these files/folders (explicitly include)
183+ # ---------------------------
184+ # Keep these (explicitly include)
185+ # ---------------------------
166186! nginx /
167187! php /
168188! redis /
169189! supervisor /
170190! scripts /
171- ! app /public /index.php
191+ ! app /public /index.php
192+ # Example configs (mounted via volumes only, never baked in)
193+ example /config /
194+ example /config /**
195+ # Root-level runtime logs/artifacts (avoid sending to build context)
196+ logs /
197+ logs /**
198+ * .log,
199+ * .sql,
200+ * .sqlite
201+ # Local developer shells / env managers
202+ .envrc
203+ .direnv /
204+ .direnv /**
205+
206+ # Language/tool caches (speed up context)
207+ .composer /
208+ .cache /
209+ .npm /
210+ .node-gyp /
211+
212+ # OS/user junk (extras)
213+ Desktop.ini
214+ Icon ?
0 commit comments