forked from kodermax/kubectl-aws-eks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (15 loc) · 815 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine/helm as builder
FROM amazon/aws-cli
ENV BASE_URL="https://get.helm.sh"
ENV HELM_3_FILE="helm-v3.4.2-linux-amd64.tar.gz"
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && \
curl -L -o /usr/local/bin/aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.5.7/aws-iam-authenticator_0.5.7_linux_amd64 && \
chmod +x /usr/local/bin/aws-iam-authenticator && \
chmod +x ./kubectl && \
mv ./kubectl /usr/bin/kubectl && \
yum install -y gettext
RUN kubectl version --client
COPY entrypoint.sh /entrypoint.sh
COPY --from=builder /usr/bin/helm /usr/bin/helm
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]