fix: fix: add .dockerignore — stop baking .env and .git into agent image (#377)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
Agent 2026-04-07 19:21:57 +00:00
parent f19f38f16b
commit cbc2a0ca4e

20
.dockerignore Normal file
View file

@ -0,0 +1,20 @@
# Secrets — prevent .env files from being baked into the image
.env
.env.enc
.env.vault
.env.vault.enc
# Version control — .git is huge and not needed in image
.git
# Archives — not needed at runtime
*.tar.gz
# Prometheus data — large, ephemeral data
prometheus-data/
# Compose files — only needed at runtime via volume mount
docker-compose.yml
# Project TOML files — gitignored anyway, won't be in build context
projects/*.toml