forked from fidelity/kconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.deps
40 lines (30 loc) · 1.16 KB
/
Dockerfile.deps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM alpine:3.12 AS builder
ARG AWS_IAM_AUTH_VERSION=0.5.2
ARG KUBELOGIN_VERSION=0.0.8
ARG KUBECTL_VERSION=1.20.0
ARG HELM_VERSION=3.5.2
RUN apk --no-cache add ca-certificates curl
# kubectl
RUN curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \
chmod +x ./kubectl
# aws-iam-authenticator
RUN curl -L \
https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_IAM_AUTH_VERSION}/aws-iam-authenticator_${AWS_IAM_AUTH_VERSION}_linux_amd64 -o aws-iam-authenticator && \
chmod +x ./aws-iam-authenticator
# kubelogin
RUN curl -L \
https://github.com/Azure/kubelogin/releases/download/v${KUBELOGIN_VERSION}/kubelogin-linux-amd64.zip -o kubelogin.zip && \
unzip kubelogin.zip
# Helm
RUN curl -L https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -o helm.tar.gz && \
tar xvfz helm.tar.gz
FROM alpine:3.12
RUN apk --no-cache add ca-certificates
WORKDIR /app/
ENV PATH="/app:${PATH}"
COPY --from=builder kubectl .
COPY --from=builder aws-iam-authenticator .
COPY --from=builder bin/linux_amd64/kubelogin .
COPY --from=builder linux-amd64/helm .
COPY kconnect .
ENTRYPOINT ["/app/kconnect"]