You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -459,6 +459,7 @@ just run start --full-rebuild-sandbox-image --local-opencode-submodule
459
459
460
460
For new Docker build steps, follow this checklist:
461
461
- Prefer BuildKit cache mounts (`RUN --mount=type=cache`) for package caches (`apt`, `bun`, `cargo`, `pip`, and `pnpm/npm`).
462
+
- For `bun install` in container builds, use a dedicated install-cache mount plus a short retry loop that clears that cache between attempts to recover from occasional corrupted/interrupted cache artifacts.
462
463
- Create and remove temporary workdirs in the same `RUN` layer (for example `/tmp/opencode-repo`).
463
464
- Do not defer cleanup to later layers; deleted files still exist in lower layers.
464
465
- Keep builder-stage artifacts out of runtime layers by copying only final outputs.
Copy file name to clipboardExpand all lines: packages/core/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -459,6 +459,7 @@ just run start --full-rebuild-sandbox-image --local-opencode-submodule
459
459
460
460
For new Docker build steps, follow this checklist:
461
461
- Prefer BuildKit cache mounts (`RUN --mount=type=cache`) for package caches (`apt`, `bun`, `cargo`, `pip`, and `pnpm/npm`).
462
+
- For `bun install` in container builds, use a dedicated install-cache mount plus a short retry loop that clears that cache between attempts to recover from occasional corrupted/interrupted cache artifacts.
462
463
- Create and remove temporary workdirs in the same `RUN` layer (for example `/tmp/opencode-repo`).
463
464
- Do not defer cleanup to later layers; deleted files still exist in lower layers.
464
465
- Keep builder-stage artifacts out of runtime layers by copying only final outputs.
0 commit comments