Commit Graph
2 Commits
Author SHA1 Message Date
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
Chris Scott bbf66c259b Initial release v0.2.5 2025-11-23 23:25:27 -05:00