Files
Chris Scott 97370a8296 build(docker): exclude nested node_modules and scratch dirs from build context
Bare `node_modules` matched the context root only, so `COPY shared ./shared`
overlaid the host's stale `shared/node_modules` onto the deps-stage install.
Once the lockfile moved ahead of the host tree the pnpm symlink dangled and
`pnpm --filter frontend build` could not resolve `@opencode-ai/sdk/v2/types`.

Anchor the pattern with `**/` and apply the same correction to `.env`,
`.env.local`, `dist`, `coverage` and `workspace`, which shared the root-only
match and were copying `backend/coverage` into the image. `frontend/dist` and
`backend/dist` become redundant under `**/dist`.

Also exclude `.pnpm-store`, which was sending 598MB of context to the daemon
on every build.
2026-09-20 10:42:54 -04:00

39 lines
271 B
Plaintext

**/node_modules
.pnpm-store
*.log
**/.env
**/.env.local
**/dist
build
**/coverage
.DS_Store
*.db
*.db-shm
*.db-wal
.vscode
.idea
data
**/workspace
config
opencode-src
temp
.git
.github
.gitignore
*.md
!README.md
backend/data
.cache
.turbo
*.swp
*.swo
*~
.npm
.yarn