mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
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.
39 lines
271 B
Plaintext
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
|