Skip to content

Commit

Permalink
fix(frontend/Dockerfile): focus on arm and amd architecture correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-rm-meyer-ISST committed May 23, 2024
1 parent 81a8b36 commit 43bc953
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 43bc953

Please sign in to comment.