

























@@ -72,10 +72,20 @@ RUN --mount=type=cache,id=openclaw-pnpm-store,target=/root/.local/share/pnpm/sto
7272 NODE_OPTIONS=--max-old-space-size=2048 pnpm install --frozen-lockfile
73737474# pnpm v10+ may append peer-resolution hashes to virtual-store folder names; do not hardcode `.pnpm/...`
75-# paths. Fail fast here if the Matrix native binding did not materialize after install.
76-RUN echo "==> Verifying critical native addons..." && \
75+# paths. Matrix's native downloader can hit transient release CDN errors while
76+# still exiting successfully, so retry the package downloader before failing.
77+RUN set -eux; \
78+ echo "==> Verifying critical native addons..."; \
79+ for attempt in 1 2 3 4 5; do \
80+ if find /app/node_modules -name "matrix-sdk-crypto*.node" 2>/dev/null | grep -q .; then \
81+ exit 0; \
82+ fi; \
83+ echo "matrix-sdk-crypto native addon missing; retrying download (${attempt}/5)"; \
84+ node /app/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/download-lib.js || true; \
85+ sleep $((attempt * 2)); \
86+ done; \
7787 find /app/node_modules -name "matrix-sdk-crypto*.node" 2>/dev/null | grep -q . || \
78- (echo "ERROR: matrix-sdk-crypto native addon missing (pnpm install may have silently failed on this arch)" >&2 && exit 1)
88+ (echo "ERROR: matrix-sdk-crypto native addon missing after retries" >&2 && exit 1)
79898090COPY . .
8191此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。