Skip to content

Commit

Permalink
Merge pull request #106 from sbstp-suse/fix/kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
sbstp authored Feb 7, 2023
2 parents 59d1421 + 9e81130 commit afbc4aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/Dockerfile.suc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ FROM ${ALPINE} as kubectl
RUN apk add -U curl
RUN ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then ARCH=amd64; fi && \
curl -L -o /usr/bin/kubectl https://dl.k8s.io/release/v1.24.0/bin/linux/${ARCH}/kubectl && \
if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; fi && \
curl -L -f -o /usr/bin/kubectl https://dl.k8s.io/release/v1.24.0/bin/linux/${ARCH}/kubectl && \
chmod +x /usr/bin/kubectl
RUN /usr/bin/kubectl version --client

ARG ALPINE=alpine:3.16.0
FROM ${ALPINE}
Expand Down

0 comments on commit afbc4aa

Please sign in to comment.