From 43bc953ea72345a3a8377f1e5718a9aabfe37196 Mon Sep 17 00:00:00 2001 From: --show-origin Date: Wed, 22 May 2024 23:39:57 -0700 Subject: [PATCH] fix(frontend/Dockerfile): focus on arm and amd architecture correctly --- frontend/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index b4bc2932..efea0506 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -25,12 +25,13 @@ ENV JQ_VERSION=1.6 # Determine architecture and download the appropriate version of jq RUN ARCH="$(uname -m)" && \ - case "${ARCH}" in \ - x86_64) JQ_BINARY="jq-linux64";; \ - aarch64) JQ_BINARY="jq-linux64";; \ - armhf) JQ_BINARY="jq-linux32";; \ - *) echo "Unsupported architecture: ${ARCH}" && exit 1 ;; \ - esac && \ + if [ "${ARCH}" = "x86_64" ]; then \ + JQ_BINARY="jq-linux-amd64"; \ + elif [ "${ARCH}" = "aarch64" ]; then \ + JQ_BINARY="jq-linux-arm64"; \ + else \ + echo "Unsupported architecture: ${ARCH}" && exit 1; \ + fi && \ wget --no-check-certificate -O /usr/bin/jq "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/${JQ_BINARY}" && \ chmod +x /usr/bin/jq