Skip to content

Commit

Permalink
feat(image): add kubectl for secret provision
Browse files Browse the repository at this point in the history
  • Loading branch information
nefelim4ag committed Jun 29, 2023
1 parent 27de5d3 commit 2bf1af0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
FROM ubuntu:22.04
ENV KUBECTL_VERSION=v1.26.6
RUN apt update && apt install -y curl
RUN set -eux; \
ARCH=$(dpkg --print-architecture); \
\
curl -SL "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" -o /usr/bin/kubectl; \
chmod +x /usr/bin/kubectl
FROM ubuntu:22.04

RUN apt update && apt install --no-install-recommends -y openssh-server zsh && apt clean && rm -rf /var/log/* /var/cache/debconf/*-old
COPY --from=0 /usr/bin/kubectl /usr/bin/kubectl

0 comments on commit 2bf1af0

Please sign in to comment.