GeezerVison is showing github.com — fix(stats): preserve container dependency lock (#49385) · jtrag/opencode@88c6c7a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/stats/server/Dockerfile +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,10 +14,12 @@ RUN bunx [email protected] prune @opencode-ai/stats-server --docker --no-update-notif |
14 | 14 | FROM base AS installer |
15 | 15 |
|
16 | 16 | COPY --from=pruner /app/out/json/ ./ |
| 17 | +COPY --from=pruner /app/bun.lock ./bun.lock |
17 | 18 |
|
18 | 19 | # Bun 1.3.x needs the pruned workspace globs and lockfile metadata refreshed before the frozen production install. |
19 | 20 | RUN bun -e 'const packageJson = await Bun.file("package.json").json(); packageJson.workspaces.packages = Array.from(new Bun.Glob("packages/**/package.json").scanSync(".")).map((file) => file.slice(0, -"/package.json".length)).sort(); await Bun.write("package.json", JSON.stringify(packageJson, null, 2) + "\n")' |
20 | | -RUN rm -f bun.lock && bun install --filter @opencode-ai/stats-server --lockfile-only --ignore-scripts |
| 21 | +# Preserve locked transitive versions while refreshing the pruned workspace metadata. |
| 22 | +RUN bun install --filter @opencode-ai/stats-server --lockfile-only --ignore-scripts |
21 | 23 | RUN bun install --filter @opencode-ai/stats-server --frozen-lockfile --production --ignore-scripts |
22 | 24 |
|
23 | 25 | FROM base AS runner |
|