Skip to content

Commit

Permalink
ver: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ptx96 committed Jun 9, 2021
1 parent a95040d commit e17b2d6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM alpine:3.13.5

ARG KUBECTL_VERSION
ARG TARGETARCH

RUN apk add --no-cache --update \
ca-certificates \
curl && \
curl -L -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl && \
chmod +x /usr/local/bin/kubectl && \
addgroup -g 1000 -S nonroot && \
adduser -u 1000 -D -S -G nonroot nonroot

RUN kubectl version --client

USER nonroot
ENTRYPOINT ["/bin/sh", "-c"]
CMD ["kubectl"]

0 comments on commit e17b2d6

Please sign in to comment.