1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00

update rehook

This commit is contained in:
kev 2021-07-07 18:07:10 +08:00
parent c3c08424a5
commit 0f27d619cc
2 changed files with 3 additions and 3 deletions

View File

@ -15,11 +15,11 @@ RUN go build --ldflags '-s -extldflags "-static"' -i -o rehook github.com/jstemm
FROM alpine:3 FROM alpine:3
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
WORKDIR /opt/rehook WORKDIR /opt/rehook
RUN mkdir -p bin etc log RUN mkdir -p bin log var
RUN apk add --no-cache bash coreutils curl jq RUN apk add --no-cache bash coreutils curl jq
COPY --from=build /go/src/github.com/jstemmer/rehook/public public COPY --from=build /go/src/github.com/jstemmer/rehook/public public
COPY --from=build /go/src/github.com/jstemmer/rehook/views views COPY --from=build /go/src/github.com/jstemmer/rehook/views views
COPY --from=build /go/bin/rehook bin COPY --from=build /go/bin/rehook bin
EXPOSE 9000 9001 EXPOSE 9000 9001
ENTRYPOINT ["bin/rehook"] ENTRYPOINT ["bin/rehook"]
CMD ["-db", "etc/rehook.db", "-http", ":9000", "-admin", ":9001"] CMD ["-db", "var/rehook.db", "-http", ":9000", "-admin", ":9001"]

View File

@ -4,7 +4,7 @@ rehook
[Rehook][1] - a webhook dispatcher, filtering incoming requests from external [Rehook][1] - a webhook dispatcher, filtering incoming requests from external
services and acting on them. services and acting on them.
To view `etc/rehook.db`, please install [boltbrowser][2] To view `var/rehook.db`, please install [boltbrowser][2]
[1]: https://github.com/jstemmer/rehook [1]: https://github.com/jstemmer/rehook
[2]: https://github.com/br0xen/boltbrowser [2]: https://github.com/br0xen/boltbrowser