-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (15 loc) · 825 Bytes
/
Dockerfile
File metadata and controls
15 lines (15 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# kiweeteam/kops
FROM ubuntu:22.04
ARG KOPS_VERSION=1.28.4
RUN apt update && apt install -y curl openssh-client
RUN if [ "$(uname -m)" = "aarch64" ]; then \
curl -sfL https://github.com/kubernetes/kops/releases/download/v${KOPS_VERSION}/kops-linux-arm64 -o /tmp/kops; \
curl -sfL https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl -o /tmp/kubectl; \
else \
curl -sfL https://github.com/kubernetes/kops/releases/download/v${KOPS_VERSION}/kops-linux-amd64 -o /tmp/kops; \
curl -sfL https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl -o /tmp/kubectl; \
fi
RUN mv /tmp/kops /usr/bin/kops \
&& chmod +x /usr/bin/kops \
&& mv /tmp/kubectl /usr/bin/kubectl \
&& chmod +x /usr/bin/kubectl