2015-11-05 05:32:10 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for webhook
|
|
|
|
#
|
|
|
|
|
2019-01-09 12:59:22 +02:00
|
|
|
FROM golang:alpine AS build
|
|
|
|
ENV CGO_ENABLED=0
|
|
|
|
ENV GOOS=linux
|
|
|
|
ENV GOARCH=amd64
|
|
|
|
WORKDIR /go/bin
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
RUN go get -d -v github.com/adnanh/webhook
|
|
|
|
RUN go build --ldflags '-s -extldflags "-static"' -i -o webhook github.com/adnanh/webhook
|
|
|
|
|
2015-11-05 06:20:42 +02:00
|
|
|
FROM alpine
|
2017-05-08 01:05:07 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
2019-01-09 12:59:22 +02:00
|
|
|
RUN apk add --no-cache bash coreutils curl jq
|
|
|
|
COPY --from=build /go/bin/webhook /usr/local/bin/
|
2019-01-09 13:01:55 +02:00
|
|
|
WORKDIR /etc/webhook
|
2019-01-09 12:59:22 +02:00
|
|
|
VOLUME /etc/webhook
|
2015-11-05 06:20:42 +02:00
|
|
|
EXPOSE 9000
|
|
|
|
ENTRYPOINT ["webhook"]
|
2019-01-09 13:23:39 +02:00
|
|
|
CMD ["-hooks", "hooks.json", "-hotreload", "-template", "-verbose"]
|