GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • packages/stats/server
    • Dockerfile
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/stats/server/Dockerfile‎

Copy file name to clipboardExpand all lines: packages/stats/server/Dockerfile
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ RUN bunx [email protected] prune @opencode-ai/stats-server --docker --no-update-notif
1414
FROM base AS installer
1515

1616
COPY --from=pruner /app/out/json/ ./
17+
COPY --from=pruner /app/bun.lock ./bun.lock
1718

1819
# Bun 1.3.x needs the pruned workspace globs and lockfile metadata refreshed before the frozen production install.
1920
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
2123
RUN bun install --filter @opencode-ai/stats-server --frozen-lockfile --production --ignore-scripts
2224

2325
FROM base AS runner

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.