1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:19:24 +02:00
dockerfiles/webhook/Dockerfile

23 lines
575 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
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
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"]
2019-01-09 13:23:39 +02:00
CMD ["-hooks", "hooks.json", "-hotreload", "-template", "-verbose"]