-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
26 lines (18 loc) · 645 Bytes
/
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
FROM golang:1.14 as builder
WORKDIR /go/src/github.com/gojekfarm/stevedore
COPY ./ ./
RUN make compile
FROM alpine:3.12.4
ARG HELM_VERSION="v3.3.1"
ARG UID=stevedore
ARG GID=stevedore
RUN addgroup -S $GID && adduser -S $UID -G $GID
RUN wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm \
&& chmod +x /usr/local/bin/helm
COPY --from=builder /go/src/github.com/gojekfarm/stevedore/out/stevedore /usr/local/bin/
USER $UID
WORKDIR /home/stevedore
RUN helm repo add stable https://charts.helm.sh/stable
RUN helm repo update
ENTRYPOINT [ "stevedore" ]
CMD ["version"]