File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
6565COPY openclaw.mjs ./
6666COPY ui/package.json ./ui/package.json
6767COPY patches ./patches
68- COPY scripts/postinstall-bundled-plugins.mjs scripts/npm-runner.mjs scripts/windows-cmd-helpers.mjs ./scripts/
68+ COPY scripts/postinstall-bundled-plugins.mjs scripts/preinstall-package-manager-warning.mjs scripts/ npm-runner.mjs scripts/windows-cmd-helpers.mjs ./scripts/
6969
7070COPY --from=ext-deps /out/ ./${OPENCLAW_BUNDLED_PLUGIN_DIR}/
7171
@@ -74,6 +74,12 @@ COPY --from=ext-deps /out/ ./${OPENCLAW_BUNDLED_PLUGIN_DIR}/
7474RUN --mount=type=cache,id=openclaw-pnpm-store,target=/root/.local/share/pnpm/store,sharing=locked \
7575 NODE_OPTIONS=--max-old-space-size=2048 pnpm install --frozen-lockfile
7676
77+ # pnpm v10+ may append peer-resolution hashes to virtual-store folder names; do not hardcode `.pnpm/...`
78+ # paths. Fail fast here if the Matrix native binding did not materialize after install.
79+ RUN echo "==> Verifying critical native addons..." && \
80+ find /app/node_modules -name "matrix-sdk-crypto*.node" 2>/dev/null | grep -q . || \
81+ (echo "ERROR: matrix-sdk-crypto native addon missing (pnpm install may have silently failed on this arch)" >&2 && exit 1)
82+
7783COPY . .
7884
7985# Normalize extension paths now so runtime COPY preserves safe modes
You can’t perform that action at this time.
0 commit comments