Changes webhooks Dockerfile to use docker/compose as base image
This commit is contained in:
parent
978c24093d
commit
cf53e94914
@ -1,7 +1,17 @@
|
|||||||
FROM almir/webhook
|
FROM golang:alpine3.9 AS build
|
||||||
RUN apk add --update docker py-pip heirloom-mailx \
|
WORKDIR /go/src/github.com/adnanh/webhook
|
||||||
&& pip install docker-compose \
|
ENV WEBHOOK_VERSION 2.6.9
|
||||||
|
RUN apk add --update -t build-deps curl libc-dev gcc libgcc
|
||||||
|
RUN curl -L --silent -o webhook.tar.gz https://github.com/adnanh/webhook/archive/${WEBHOOK_VERSION}.tar.gz && \
|
||||||
|
tar -xzf webhook.tar.gz --strip 1 && \
|
||||||
|
go get -d && \
|
||||||
|
go build -o /usr/local/bin/webhook
|
||||||
|
|
||||||
|
FROM docker/compose:1.22.0
|
||||||
|
COPY --from=build /usr/local/bin/webhook /usr/local/bin/webhook
|
||||||
|
VOLUME ["/etc/webhook"]
|
||||||
|
RUN apk add --update heirloom-mailx \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
COPY hooks.json /etc/webhook/hooks.json
|
COPY hooks.json /etc/webhook/hooks.json
|
||||||
COPY redeploy-site.sh /var/scripts/redeploy-site.sh
|
COPY redeploy-site.sh /var/scripts/redeploy-site.sh
|
||||||
CMD ["-verbose", "-hooks=/etc/webhook/hooks.json"]
|
ENTRYPOINT ["/usr/local/bin/webhook", "-verbose", "-hooks=/etc/webhook/hooks.json"]
|
||||||
|
Loading…
Reference in New Issue
Block a user