forked from topfreegames/kubectl-docker-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 637 Bytes
/
Dockerfile
File metadata and controls
21 lines (15 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM alpine:3.10.3
ENV KUBECTL_VERSION="v1.16.2"
ENV HELM_VERSION="v3.0.0"
ENV DOCKER_CLI_VERSION="18.09.8-r0"
ENV GIT_VERSION="2.22.2-r0"
ENV MAKE_VERSION="4.2.1-r2"
RUN apk update && \
apk add make=${MAKE_VERSION} git=${GIT_VERSION} docker-cli=${DOCKER_CLI_VERSION}
ADD https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl /bin/kubectl
RUN chmod u+x /bin/kubectl
ADD https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz /tmp
RUN tar -xf /tmp/helm-${HELM_VERSION}-linux-amd64.tar.gz \
&& mv linux-amd64/helm /bin/ \
&& chmod +x /bin/helm \
&& rm -rf /tmp