1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/webhook/Dockerfile

23 lines
573 B
Docker
Raw Normal View History

2015-11-05 03:32:10 +00:00
#
# Dockerfile for webhook
#
2019-01-09 10:59:22 +00: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 04:20:42 +00:00
FROM alpine
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2019-01-09 10:59:22 +00:00
RUN apk add --no-cache bash coreutils curl jq
COPY --from=build /go/bin/webhook /usr/local/bin/
2019-01-09 11:01:55 +00:00
WORKDIR /etc/webhook
2019-01-09 10:59:22 +00:00
VOLUME /etc/webhook
2015-11-05 04:20:42 +00:00
EXPOSE 9000
ENTRYPOINT ["webhook"]
2019-01-09 11:23:39 +00:00
CMD ["-hooks", "hooks.json", "-hotreload", "-template", "-verbose"]