Skip to content

Commit

Permalink
fix(fronend/Dockerfile): use environment dependent jq
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-rm-meyer-ISST committed May 23, 2024
1 parent 88577a7 commit feaf893
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ FROM node:lts-alpine as build
ARG NPM_BUILD_MODE=dockerbuild
ENV JQ_VERSION=1.6

RUN wget --no-check-certificate https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 -O /tmp/jq-linux64
RUN cp /tmp/jq-linux64 /usr/bin/jq
RUN chmod +x /usr/bin/jq
# 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 && \
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

WORKDIR /app
COPY . .
Expand Down

0 comments on commit feaf893

Please sign in to comment.