mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
committed by
Peter Steinberger
parent
34b18ea9db
commit
2ab6313d99
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user