mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-22 05:09:09 +02:00
22 lines
582 B
Docker
22 lines
582 B
Docker
#
|
|
# Dockerfile for webhook
|
|
#
|
|
|
|
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
|
|
|
|
FROM alpine
|
|
MAINTAINER kev <noreply@easypi.pro>
|
|
RUN apk add --no-cache bash coreutils curl jq
|
|
COPY --from=build /go/bin/webhook /usr/local/bin/
|
|
VOLUME /etc/webhook
|
|
EXPOSE 9000
|
|
ENTRYPOINT ["webhook"]
|
|
CMD ["-header", "Access-Control-Allow-Origin=*", "-hooks", "/etc/webhook/hooks.json", "-verbose"]
|