Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
camaeel authored May 16, 2023
1 parent 75f35b9 commit 5d2af0f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions kubectl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,21 @@ RUN set -eux; \
echo "$(wget -O - "https://dl.k8s.io/v${KUBECTL_VERSION}/bin/linux/arm64/kubectl.sha256") kubectl" > kubectl.sha256 && \
sha256sum -cw kubectl.sha256 && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
rm kubectl
rm kubectl \
;; \
amd64|x86_64) \
wget "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \
echo "$(wget -O - "https://dl.k8s.io/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256") kubectl" > kubectl.sha256 && \
sha256sum -cw kubectl.sha256 && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
rm kubectl
rm kubectl \
;; \
*) \
echo "Unsupported arch: ${ARCH}"; \
exit 1; \
;; \
esac; \

RUN wget "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \
echo "$(wget -O - "https://dl.k8s.io/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256") kubectl" > kubectl.sha256 && \
sha256sum -cw kubectl.sha256 && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
rm kubectl

USER nobody
CMD ["/bin/sh"]
ENTRYPOINT []

0 comments on commit 5d2af0f

Please sign in to comment.