forked from lachie83/k8s-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (32 loc) · 1.22 KB
/
Dockerfile
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
FROM alpine
LABEL maintainer="Lachlan Evenson <lachlan.evenson@gmail.com>"
ARG VCS_REF
ARG BUILD_DATE
# Metadata
ARG BRANCH=unknown
ARG BUILD_URL=http://localhost
ARG PULL_REQUEST=false
ARG REPO_URL='https://github.com/OpenGov/k8s-helm'
ARG REVISION={$VCS_REF}
LABEL org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/OpenGov/k8s-helm" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="/Dockerfile" \
com.opengov.build.branch=${BRANCH} \
com.opengov.build.build-url=${BUILD_URL} \
com.opengov.build.pull-request=${PULL_REQUEST} \
com.opengov.build.repo-url=${REPO_URL} \
com.opengov.build.revision=${REVISION} \
com.opengov.build.service=helm
ENV HELM_LATEST_VERSION="v2.9.1"
RUN apk add --update ca-certificates \
&& apk add --update -t deps wget \
&& wget https://storage.googleapis.com/kubernetes-helm/helm-${HELM_LATEST_VERSION}-linux-amd64.tar.gz \
&& tar -xvf helm-${HELM_LATEST_VERSION}-linux-amd64.tar.gz \
&& mv linux-amd64/helm /usr/local/bin \
&& apk del --purge deps \
&& rm /var/cache/apk/* \
&& rm -f /helm-${HELM_LATEST_VERSION}-linux-amd64.tar.gz \
&& helm init --client-only
ENTRYPOINT ["helm"]
CMD ["help"]