-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(image): add kubectl for secret provision
- Loading branch information
1 parent
27de5d3
commit 2bf1af0
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |