1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/webhook/Dockerfile

25 lines
701 B
Docker
Raw Normal View History

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
2021-04-14 10:39:13 +02:00
ENV GO111MODULE=off
2019-01-09 12:59:22 +02:00
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
2021-03-26 06:46:59 +02:00
FROM alpine:3
2019-12-27 06:21:51 +02:00
MAINTAINER EasyPi Software Foundation
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"]
2021-03-26 06:46:59 +02:00
# Doc: https://github.com/adnanh/webhook/blob/master/docs/Webhook-Parameters.md
CMD ["-hooks", "hooks.json", "-hooks", "hooks.yaml", "-hotreload", "-template", "-verbose"]