Skip to content

Commit

Permalink
Set TARGETARCH parameter in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rwunderer committed Oct 23, 2023
1 parent fd82996 commit c2b56ce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ FROM busybox:v1.36.1@sha256:3fbc632167424a6d997e74f52b878d7cc478225cffac6bc977ee

# renovate: datasource=github-releases depName=hcloud-cli lookupName=hetznercloud/cli
ARG HCLOUD_VERSION=v1.38.3
ARG ARCH=amd64
ARG TARGETARCH
ARG TARGETOS

WORKDIR /tmp

RUN wget https://github.com/hetznercloud/cli/releases/download/${HCLOUD_VERSION}/hcloud-linux-${ARCH}.tar.gz && \
tar xzf hcloud-linux-${ARCH}.tar.gz hcloud && \
RUN wget https://github.com/hetznercloud/cli/releases/download/${HCLOUD_VERSION}/hcloud-linux-${TARGETARCH}.tar.gz && \
tar xzf hcloud-linux-${TARGETARCH}.tar.gz hcloud && \
install hcloud /bin && \
rm hcloud-linux-${ARCH}.tar.gz hcloud
rm hcloud-linux-${TARGETARCH}.tar.gz hcloud

#-------------------
# Minimal image
Expand Down

0 comments on commit c2b56ce

Please sign in to comment.