forked from BouweCeunen/argo-continuous-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (19 loc) · 626 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# builder image
FROM golang:1.12-alpine3.9 as builder
MAINTAINER Bouwe Ceunen <[email protected]>
RUN apk -U add git curl
ENV CGO_ENABLED 0
COPY webhook /webhook
RUN GOPATH=/webhook
RUN cd /webhook && go build -o /bin/webhook
RUN curl -sSL -o /bin/argo https://github.com/argoproj/argo/releases/download/v2.2.1/argo-linux-amd64
RUN chmod +x /bin/argo
# final image
FROM alpine
MAINTAINER Bouwe Ceunen <[email protected]>
WORKDIR /hook
COPY --from=builder /bin/webhook /hook/webhook
COPY --from=builder /bin/argo /hook/argo
COPY --from=builder /webhook/argo.yml /hook/argo.yml
ENTRYPOINT [ "" ]
CMD ["/hook/webhook"]