Skip to content

Commit 3053df2

Browse files
feat: update openclaw Dockerfile
1 parent 71e3a98 commit 3053df2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

openclaw/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
6565
COPY openclaw.mjs ./
6666
COPY ui/package.json ./ui/package.json
6767
COPY 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

7070
COPY --from=ext-deps /out/ ./${OPENCLAW_BUNDLED_PLUGIN_DIR}/
7171

@@ -74,6 +74,12 @@ COPY --from=ext-deps /out/ ./${OPENCLAW_BUNDLED_PLUGIN_DIR}/
7474
RUN --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+
7783
COPY . .
7884

7985
# Normalize extension paths now so runtime COPY preserves safe modes

0 commit comments

Comments
 (0)