Skip to content

Keep .claude out of the Docker build context - #484

Open
jeremy wants to merge 2 commits into
mainfrom
dockerignore-claude
Open

Keep .claude out of the Docker build context#484
jeremy wants to merge 2 commits into
mainfrom
dockerignore-claude

Conversation

@jeremy

@jeremy jeremy commented Aug 28, 2026

Copy link
Copy Markdown
Member

Local agent session state (.claude) can grow large — worktrees under .claude/worktrees are whole extra checkouts of the repo — and ships with the Docker build context, bloating images. Ignore it.

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.
Copilot AI balanced review requested due to automatic review settings August 28, 2026 23:48
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-28T23:49:40.834786Z bd00ce9 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Excludes .claude from Docker build contexts to reduce build and export size.

Changes:

  • Adds .claude to .dockerignore.
  • Also unintentionally excludes tracked .claude/CLAUDE.md from source exports.

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.

Comment thread .dockerignore Outdated
Dockerfile-export packages this build context into the writebook.zip
customers download, so a blanket .claude rule silently dropped the
committed CLAUDE.md from every release. Exclude only the session-state
entries and re-include the tracked file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants