From 2ab6313d99d5c794f2ebcac30534533b6b26755f Mon Sep 17 00:00:00 2001 From: JayMishra-github Date: Mon, 16 Feb 2026 10:21:51 -0800 Subject: [PATCH] fix(docker): ensure memory-lancedb deps installed in Docker image The memory-lancedb extension declares openai and @lancedb/lancedb as dependencies, but these may not be available at runtime due to pnpm hoisting behavior with native bindings. This adds an explicit install step after the build to ensure the extension's dependencies are present. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 716ab2099f7..8763cd26497 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,10 @@ RUN pnpm install --frozen-lockfile COPY . . RUN pnpm build + +# Ensure memory-lancedb extension dependencies are installed. +# LanceDB has native bindings that may not be hoisted by pnpm in all configurations. +RUN pnpm install --filter @openclaw/memory-lancedb --prod --no-frozen-lockfile 2>/dev/null || true # Force pnpm for UI build (Bun may fail on ARM/Synology architectures) ENV OPENCLAW_PREFER_PNPM=1 RUN pnpm ui:build