A trailing-slash pattern in .dockerignore matches only the context root, so node_modules/ never excluded ui/node_modules -- 200MB shipped to the builder for a Go compile. The issue tracker's Dolt directory was never listed at all. Every line here either bloats the context or invalidates the COPY layer for nothing: 467MB transferred per build, 320kB now.
31 lines
715 B
Plaintext
31 lines
715 B
Plaintext
# Keep the build context to source + go.mod/go.sum. Everything here either
|
|
# bloats the context or invalidates the COPY layer on every unrelated change.
|
|
.git
|
|
.task
|
|
.claude
|
|
.codex
|
|
.crew
|
|
.agents
|
|
.references
|
|
bin/
|
|
dist/
|
|
docs/
|
|
# Issue tracking is a Dolt database, not build input.
|
|
.beads/
|
|
tmp/
|
|
.playwright-mcp/
|
|
# A trailing-slash pattern matches only the context root, so this is written to
|
|
# match a node_modules at any depth: ui/node_modules alone is 200MB and the
|
|
# agent image compiles Go, which needs none of it.
|
|
**/node_modules/
|
|
|
|
# Stray host-built binaries committed at the repo root.
|
|
/archied
|
|
/archie-agent
|
|
|
|
# Local config and secrets — never needed at build time.
|
|
*.env
|
|
.env*
|
|
config.toml
|
|
!config.example.toml
|