fix(docker): keep runtime prune offline · openclaw/openclaw@a329b9e
steipete
·
2026-05-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -122,6 +122,7 @@ FROM build AS runtime-assets
|
122 | 122 | ARG OPENCLAW_EXTENSIONS |
123 | 123 | ARG OPENCLAW_BUNDLED_PLUGIN_DIR |
124 | 124 | RUN --mount=type=cache,id=openclaw-pnpm-store,target=/root/.local/share/pnpm/store,sharing=locked \ |
| 125 | + pnpm store add source-map@0.6.1 && \ |
125 | 126 | CI=true pnpm prune --prod \ |
126 | 127 | --config.offline=true \ |
127 | 128 | --config.supportedArchitectures.os=linux \ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -93,6 +93,7 @@ describe("Dockerfile", () => {
|
93 | 93 | const dockerfile = await readFile(dockerfilePath, "utf8"); |
94 | 94 | |
95 | 95 | expect(dockerfile).toContain("pnpm install --frozen-lockfile \\"); |
| 96 | +expect(dockerfile).toContain("pnpm store add source-map@0.6.1 && \\"); |
96 | 97 | expect(dockerfile).toContain("CI=true pnpm prune --prod \\"); |
97 | 98 | expect(dockerfile).toContain("--config.offline=true"); |
98 | 99 | expect(dockerfile.split("--config.supportedArchitectures.os=linux").length - 1).toBe(2); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。