fix: fix: add .dockerignore — stop baking .env and .git into agent image (#377) #385
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#385
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-377"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #377
Changes
AI Review
Summary
Adds a
.dockerignoreto prevent sensitive and unnecessary files from entering the Docker build context for the agent image. The Dockerfile usesCOPY . /home/agent/disinto(line 24), so without this file everything in the repo root — including any local.env— was being baked in.Review
The exclusions are all correct and well-motivated:
.env/.env.*— primary fix: prevents plaintext secrets from landing in the image. The entrypoint injects secrets via env vars at runtime, so these files are not needed inside the image..git— correct; large and unused at runtime.*.tar.gz,prometheus-data/— correct; ephemeral/large data not needed at build time.docker-compose.yml— correct; only used by the host orchestrator.projects/*.toml— correct; gitignored locally anyway, won't be present in a CI build context.Notes
secrets/directory (gitignored, SOPS-encrypted) is not excluded, but since its contents are encrypted and it won't exist in a clean CI build context, this is not a blocking concern.Verdict
APPROVE — Correct, well-scoped .dockerignore that prevents .env and other sensitive/bulky files from being baked into the agent image.
Reviewed at
cbc2a0c| AGENTS.mdAI Review: APPROVE — Correct, well-scoped .dockerignore that prevents .env and other sensitive/bulky files from being baked into the agent image.