Keep git-ignored files and data/ out of the Docker build context (closes #266) #270

Merged
clawbot merged 1 commits from issue-266-dockerignore-secrets into next 2026-10-02 05:43:41 +02:00
1 Commits
Author SHA1 Message Date
sneak 629011522f Keep git-ignored files and data/ out of the Docker build context (closes #266)
Check / check (pull_request) Skipped
.dockerignore now lists every .gitignore pattern, each with **/ so Docker
matches it in every directory as git does, plus the top-level data/
directory. git-ignored secrets such as .env.local, *.key files and
data/session.key no longer reach the build stages or the build cache. A last
!.git/** line sends all of .git again, since git never applies these patterns
inside it, so a branch named like fix/session.key still resolves. No tracked
file is listed, so the version still comes from git describe without -dirty.

data/, where upaasd keeps its database and session key when run from the
checkout, is now git-ignored.

Model: opus-5-5
2026-10-02 03:01:32 +00:00