From 626d157a3f9888bc0b6f5eac138bc4555fcc85ca Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:04:05 +0200 Subject: [PATCH] Fix OpenClaw install on Alpine: add build tools + xpm; bump add-on to 0.5.16 --- openclaw_assistant/Dockerfile | 8 +++++++- openclaw_assistant/config.yaml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 0167a1f..02ee019 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -22,7 +22,10 @@ RUN apk add --no-cache \ pax-utils \ python3 \ nginx \ - ttyd + ttyd \ + # Build tools (needed for native deps like node-llama-cpp on Alpine/musl) + build-base \ + cmake # Install Node.js 22+ (musl build) from unofficial builds. # Router/base image Alpine may ship an older libstdc++; we pull a newer libstdc++ from edge to satisfy Node's C++ symbols. @@ -43,8 +46,11 @@ RUN set -eu; \ /usr/local/bin/node -v; /usr/local/bin/npm -v # Install OpenClaw globally +# NOTE: On Alpine/musl, optional native deps may still attempt to build. +# We include build tools above to avoid install-time failures. RUN npm config set fund false && npm config set audit false \ && npm config set omit optional \ + && npm install -g xpm@0.16.3 \ && NPM_CONFIG_OMIT=optional npm install -g --omit=optional openclaw@2026.1.30 COPY run.sh /run.sh diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 294c16c..de37044 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.15" +version: "0.5.16" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant