From 9068c3eb0200dcb02ee642a2f8f25ca07cd60636 Mon Sep 17 00:00:00 2001 From: luochen570 <1160510664@qq.com> Date: Tue, 14 Jul 2026 23:27:02 +0800 Subject: [PATCH] fix: use if-then-fi for duf arch mapping to not break arm64 build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 83f9d9c..cee3ead 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ RUN apk add --no-cache \ ARG TARGETARCH ARG DUF_VERSION=0.9.1 RUN DUF_ARCH="${TARGETARCH}" \ - && [ "${DUF_ARCH}" = "amd64" ] && DUF_ARCH="x86_64" \ + && if [ "${DUF_ARCH}" = "amd64" ]; then DUF_ARCH="x86_64"; fi \ && curl -fsSL "https://github.com/muesli/duf/releases/download/v${DUF_VERSION}/duf_${DUF_VERSION}_linux_${DUF_ARCH}.tar.gz" \ | tar xz -C /usr/local/bin duf