fix(docker): seed prod store before offline prune · openclaw/openclaw@6788aa1
steipete
·
2026-05-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -121,10 +121,10 @@ RUN pnpm_config_verify_deps_before_run=false pnpm qa:lab:build
|
121 | 121 | FROM build AS runtime-assets |
122 | 122 | ARG OPENCLAW_EXTENSIONS |
123 | 123 | ARG OPENCLAW_BUNDLED_PLUGIN_DIR |
124 | | -# BuildKit cache mounts are not part of cached layers; seed prune-only |
125 | | -# tarballs in the same step that runs offline prune. |
| 124 | +# BuildKit cache mounts are not part of cached layers; seed tarballs for the |
| 125 | +# installed prod graph in the same step that runs offline prune. |
126 | 126 | RUN --mount=type=cache,id=openclaw-pnpm-store,target=/root/.local/share/pnpm/store,sharing=locked \ |
127 | | - pnpm store add source-map@0.6.1 && \ |
| 127 | + pnpm list --prod --depth Infinity --json | node scripts/list-prod-store-packages.mjs | xargs -r pnpm store add && \ |
128 | 128 | CI=true pnpm prune --prod \ |
129 | 129 | --config.offline=true \ |
130 | 130 | --config.supportedArchitectures.os=linux \ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。