Keep .claude out of the Docker build context - #104
Conversation
Agent worktrees under .claude/worktrees are whole extra checkouts of this repo, and the build context picks them up. .claude is local session state and never belongs in an image.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Pull request overview
Excludes local Claude session state from installer Docker builds, reducing context size and build overhead.
Changes:
- Adds
.claudeto the installer’s Docker ignore rules.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 97ac684635
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The root Dockerfile builds with the repository as its context, where .claude lives; installer/.dockerignore only covers the installer context. Ignore .claude at the root as well.
Local agent session state (
.claude) can grow large — worktrees under.claude/worktreesare whole extra checkouts of the repo — and ships with the Docker build context, bloating images. Ignore it.