fix(docker): use tar.gz instead of tar.xz for Node.js binary (#107)

xz-utils is not available in the base image, causing ARM64 build to
fail with "File format not recognized".

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-04-21 15:21:28 +08:00
committed by GitHub
parent fdafb4e842
commit 832029a5b3
+2 -2
View File
@@ -9,8 +9,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
make \
g++ \
&& ARCH=$(dpkg --print-architecture) \
&& curl -fsSL "https://nodejs.org/dist/v23.11.0/node-v23.11.0-linux-${ARCH}.tar.xz" \
| tar -xJ -C /usr/local --strip-components=1 \
&& curl -fsSL "https://nodejs.org/dist/v23.11.0/node-v23.11.0-linux-${ARCH}.tar.gz" \
| tar -xz -C /usr/local --strip-components=1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app