Skip to content

Commit

Permalink
feat: Added support for arm in dockerfile (derailed#2180)
Browse files Browse the repository at this point in the history
* Added support for arm in dockerfile

* Removed echo statement

* Capitalised arch variable
  • Loading branch information
dheeth authored Aug 5, 2023
1 parent 1c0b8da commit 4aeb10d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ ARG KUBECTL_VERSION="v1.25.2"
COPY --from=build /k9s/execs/k9s /bin/k9s
RUN apk add --update ca-certificates \
&& apk add --update -t deps curl vim \
&& curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
&& TARGET_ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
&& curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${TARGET_ARCH}/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl \
&& apk del --purge deps \
&& rm /var/cache/apk/*
Expand Down

0 comments on commit 4aeb10d

Please sign in to comment.