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.
This commit is contained in:
1 file changed
+8
-1
+8
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user