Fix apk musl conflict: derive Alpine repo version dynamically; bump add-on to 0.5.22

This commit is contained in:
root
2026-02-01 03:31:39 +02:00
parent 4353c82f03
commit ea3b7e9981
2 changed files with 10 additions and 5 deletions
+9 -4
View File
@@ -5,10 +5,15 @@ 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 \
# Base image is Alpine, but its exact patch-level varies.
# Do NOT hardcode v3.xx repos (can cause musl/musl-dev conflicts).
# Instead, derive the repo version from /etc/alpine-release at build time.
RUN set -eu; \
ALPINE_VER="$(cut -d. -f1,2 /etc/alpine-release)"; \
echo "Using Alpine repos for v${ALPINE_VER}"; \
apk add --no-cache \
--repository="https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/main" \
--repository="https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/community" \
bash \
git \
openssh-client \
+1 -1
View File
@@ -1,5 +1,5 @@
name: OpenClaw Assistant
version: "0.5.21"
version: "0.5.22"
slug: openclaw_assistant
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
url: https://github.com/techartdev/OpenClawHomeAssistant