fix: use if-then-fi for duf arch mapping to not break arm64 build
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user