From 6e3bdbf5732143c37f5d65ca08a493cb836c0054 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:18:51 +0200 Subject: [PATCH] Fix build: add make/cmake + xpm for node-llama-cpp; bump add-on to 0.5.20 --- openclaw_assistant/Dockerfile | 11 ++++++++--- openclaw_assistant/config.yaml | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 9dbace5..a36eec5 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -5,7 +5,10 @@ FROM ${BUILD_FROM} # OpenClaw requires Node 20+, so we install a Node 20 musl build directly. ARG NODE_VERSION=22.12.0 +# Base image may not include community repo; cmake lives there. RUN apk add --no-cache \ + --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/main \ + --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/community \ bash \ git \ openssh-client \ @@ -22,7 +25,9 @@ RUN apk add --no-cache \ pax-utils \ python3 \ nginx \ - ttyd + ttyd \ + make \ + 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. @@ -46,8 +51,8 @@ RUN set -eu; \ # IMPORTANT: OpenClaw declares some native packages as optionalDependencies. # On HAOS/Alpine we skip optional deps to avoid install-time native builds. RUN npm config set fund false && npm config set audit false \ - && npm config set omit optional \ - && NPM_CONFIG_OMIT=optional npm install -g --omit=optional openclaw@2026.1.30 + && npm install -g xpm@0.16.3 \ + && npm install -g openclaw@2026.1.30 COPY run.sh /run.sh COPY nginx.conf.tpl /etc/nginx/nginx.conf.tpl diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 903c6ea..6192e59 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.19" +version: "0.5.20" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant