archie-agent 3.92GB -> 1.43GB, archied 475MB -> 251MB. - rm -rf /go/pkg/mod/cache cleared the wrong thing: it left the extracted module sources and the whole GOCACHE in the image, so that layer was 2.23GB to deliver 168MB of binaries. - /go/bin was never on PATH, so golangci-lint, gofumpt, buf and dlv shipped as unreachable dead weight. - Replace go install with pinned upstream release binaries. delve is dropped: it publishes no prebuilt binary and was the only thing forcing a compile step. go install it at runtime if needed. - beads from its Go release rather than npm, and drop dolt entirely -- bd runs Dolt embedded. - uv manages Python; no apt Python, no deadsnakes, one version. - debian:trixie-slim base, Node copied from node:24-trixie-slim. - archied drops Node: the builtin tools cover what desktop-commander did, and archied registers MCP providers itself and hard-fails the process when one cannot start. Add .dockerignore: the build context was shipping .git, docs/, bin/ and two host-built binaries into every COPY.
25 lines
428 B
Plaintext
25 lines
428 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
|
|
.beads
|
|
.task
|
|
.claude
|
|
.codex
|
|
.crew
|
|
.agents
|
|
.references
|
|
bin/
|
|
dist/
|
|
docs/
|
|
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
|