Skip to content

chore(docker): exclude CONTRIBUTING.md + SECURITY.md from build context#258

Merged
CryptoJones merged 1 commit into
masterfrom
chore/dockerignore-exclude-contributing-security
May 19, 2026
Merged

chore(docker): exclude CONTRIBUTING.md + SECURITY.md from build context#258
CryptoJones merged 1 commit into
masterfrom
chore/dockerignore-exclude-contributing-security

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Summary

.dockerignore already excluded README.md, CHANGELOG.md, and docs/ on the rationale that repo-meta docs don't help the runtime image (only LICENSE has to ship — Apache-2.0 §4(c)).

CONTRIBUTING.md and SECURITY.md were missed; they're the same category and shouldn't bake into the deployed image either.

Why

  • Same comment block already explains the rule; this just makes it complete.
  • Trivial reduction in build context.
  • Future readers won't have to wonder why two of four root-level repo-meta docs are excluded but the other two aren't.

Test plan

  • npm run lint && npm test — 688 passing
  • Behavioral change is image-only; tests don't observe it directly

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

`.dockerignore` already excluded README.md, CHANGELOG.md, and docs/
on the rationale that repo-meta docs don't help the runtime image
(only LICENSE has to ship — Apache-2.0 §4(c)). CONTRIBUTING.md and
SECURITY.md were missed; they're the same category and shouldn't
bake into the deployed image either.

Add both alongside the existing entries under the same comment.
Trivial reduction in image build context + improved consistency.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit 57bb90d into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the chore/dockerignore-exclude-contributing-security branch May 19, 2026 13:09
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