Fix HA add-on: fetch Node musl tarball from unofficial-builds

This commit is contained in:
TheLast
2026-01-27 13:49:25 +02:00
parent 010577a6b7
commit fa346f6495
+2 -2
View File
@@ -19,8 +19,8 @@ RUN apk add --no-cache \
RUN set -euo pipefail; \ RUN set -euo pipefail; \
arch=$(uname -m); \ arch=$(uname -m); \
if [ "$arch" != "x86_64" ]; then echo "Unsupported arch: $arch"; exit 1; fi; \ if [ "$arch" != "x86_64" ]; then echo "Unsupported arch: $arch"; exit 1; fi; \
url="https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64-musl.tar.xz"; \ url="https://unofficial-builds.nodejs.org/download/release/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64-musl.tar.xz"; \
echo "Downloading Node.js $NODE_VERSION from $url"; \ echo "Downloading Node.js $NODE_VERSION (musl) from $url"; \
curl -fsSL "$url" -o /tmp/node.tar.xz; \ curl -fsSL "$url" -o /tmp/node.tar.xz; \
mkdir -p /usr/local; \ mkdir -p /usr/local; \
tar -xJf /tmp/node.tar.xz -C /usr/local --strip-components=1; \ tar -xJf /tmp/node.tar.xz -C /usr/local --strip-components=1; \