From 166ae69d742a615da76ce2e71963e51e9844a531 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 25 Oct 2026 20:47:24 +1100 Subject: [PATCH] build: keep the agent image context to what compiles it 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. --- .dockerignore | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index f82f6fa01..575fe28df 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,7 +10,14 @@ bin/ dist/ docs/ -node_modules/ +# 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