Skip to content

Commit

Permalink
fix(dockerfile): add architecture detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouter committed Dec 5, 2023
1 parent 82d325e commit 75893cc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ ARG ARCH=amd64
RUN apt update && \
apt install -y curl && \
if [[ "$ARCH" == "ARM64" ]]; then \
ARCH="arm64" \
elif [[ "ARCH" == "X64' ]]; then \
ARCH="amd64"\
OSARCH="arm64" \
elif [[ "ARCH" == "X64" ]]; then \
OSARCH="amd64" \
else \
OSARCH=$ARCH \
fi && \
curl -sLo /tmp/messagebird_exporter.deb \
https://github.com/roaldnefs/messagebird_exporter/releases/download/v${VERSION}/messagebird_exporter_${VERSION}_linux_${ARCH}.deb && \
https://github.com/roaldnefs/messagebird_exporter/releases/download/v${VERSION}/messagebird_exporter_${VERSION}_linux_${OSARCH}.deb && \
apt install -y /tmp/messagebird_exporter.deb


Expand Down

0 comments on commit 75893cc

Please sign in to comment.