Commit 1067510
committed
🔒 fix: exclude .env from Docker build context
The builder stage runs COPY . . and Docker does not read .gitignore,
so a real .env (this repo ships .env.example) lands in builder-stage
layers in the local build cache. The final image is unaffected
(multi-stage, binary-only), but cache layers are exportable and
--target builder images would carry the secret. /certs was already
excluded; .env now is too.1 parent 684cd84 commit 1067510
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
0 commit comments