From 81dad4c9397e9dd3147b33be7878e11a6a2f04c5 Mon Sep 17 00:00:00 2001 From: ekko <152005280+EKKOLearnAI@users.noreply.github.com> Date: Tue, 21 Apr 2026 16:11:40 +0800 Subject: [PATCH] fix(docker): use if/else to map amd64 to x64 for Node.js download (#110) dpkg returns 'amd64' but nodejs.org uses 'x64' in tarball filenames. Shell substitution may not work in all shells, use explicit if/else. Co-authored-by: Claude Opus 4.6 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d15162a..9c17828 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* RUN ARCH=$(dpkg --print-architecture) \ - && NODE_ARCH=${ARCH/amd64/x64} \ + && if [ "$ARCH" = "amd64" ]; then NODE_ARCH="x64"; else NODE_ARCH="$ARCH"; fi \ && echo "Downloading Node.js v23.11.0 for ${NODE_ARCH}" \ && curl -fsSL "https://nodejs.org/dist/v23.11.0/node-v23.11.0-linux-${NODE_ARCH}.tar.gz" \ -o /tmp/node.tar.gz \