Fix OpenClaw install on Alpine: add build tools + xpm; bump add-on to 0.5.16

This commit is contained in:
root
2026-02-01 03:04:05 +02:00
parent 32ecb5f87b
commit 626d157a3f
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -22,7 +22,10 @@ RUN apk add --no-cache \
pax-utils \ pax-utils \
python3 \ python3 \
nginx \ 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. # 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. # 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 /usr/local/bin/node -v; /usr/local/bin/npm -v
# Install OpenClaw globally # 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 \ RUN npm config set fund false && npm config set audit false \
&& npm config set omit optional \ && 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 && NPM_CONFIG_OMIT=optional npm install -g --omit=optional openclaw@2026.1.30
COPY run.sh /run.sh COPY run.sh /run.sh
+1 -1
View File
@@ -1,5 +1,5 @@
name: OpenClaw Assistant name: OpenClaw Assistant
version: "0.5.15" version: "0.5.16"
slug: openclaw_assistant slug: openclaw_assistant
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
url: https://github.com/techartdev/OpenClawHomeAssistant url: https://github.com/techartdev/OpenClawHomeAssistant