Skip to content

chore(docker): drop two dockerignore negations that do nothing - #964

Merged
ajslater merged 1 commit into
developfrom
claude/dockerignore-dead-negations
Oct 2, 2026
Merged

ajslater merged 1 commit into
developfrom
claude/dockerignore-dead-negations

Conversation

@ajslater

@ajslater ajslater commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Summary

Removes !dist and !docker/debian.sources from .dockerignore. Neither one does anything:

  • !docker/debian.sources points to a file that doesn't exist. The Dockerfile runs COPY debian.sources /etc/apt/sources.list.d/ from the context root, and there is no docker/ directory. It also came before docker*, which excluded the file again: Docker uses the last matching line and also matches a path's parent directory. devenv's ignore-file sort had moved it there (fixed in fix(dotfiles): keep ignore negations after the patterns they override devenv#28).
  • !dist: no pattern excludes dist, so there was nothing to bring back. dist/${CODEX_WHEEL} is still in the build context.

Verification

I used buildx to export the build context (FROM scratch / COPY . /ctx/) from a clean checkout with a dummy wheel in dist/ and a dummy docker/debian.sources:

  • The old and new .dockerignore give the same context, 1,261 files.
  • Every file the Dockerfile copies is in it: debian.sources, dist/*.whl, pyproject.toml, uv.lock, frontend/package.json.
  • docker/debian.sources is excluded under both versions.

I didn't run the codex test suite, since the change only affects which files go into the Docker build context, and I checked that directly.

🤖 Generated with Claude Code

"!docker/debian.sources" names a file that isn't there: the Dockerfile
copies debian.sources from the context root, and there is no docker/
dir. It also sat before "docker*", which re-excluded it, since Docker
lets the last matching line win. No pattern excludes dist, so "!dist"
had nothing to re-include.

buildx gives the same build context, 1261 files, with or without them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ajslater
ajslater merged commit 942f509 into develop Oct 2, 2026
9 checks passed
@ajslater
ajslater deleted the claude/dockerignore-dead-negations branch October 6, 2026 20:45
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.

1 participant