add healthcheck
This commit is contained in:
parent
512e81d4b6
commit
c1d2592d7e
1 changed files with 4 additions and 2 deletions
|
@ -30,8 +30,10 @@ RUN wget https://github.com/adnanh/webhook/releases/download/${VERSION}/webhook-
|
||||||
RUN echo "- id: whoami-webhook" > hooks.yaml \
|
RUN echo "- id: whoami-webhook" > hooks.yaml \
|
||||||
&& echo " execute-command: 'whoami'" >> hooks.yaml
|
&& echo " execute-command: 'whoami'" >> hooks.yaml
|
||||||
|
|
||||||
EXPOSE 9000
|
|
||||||
|
|
||||||
USER webhook
|
USER webhook
|
||||||
|
|
||||||
|
EXPOSE 9000
|
||||||
|
|
||||||
|
HEALTHCHECK --timeout=4s CMD curl --silent --fail http://127.0.0.1:9000/ || exit 1
|
||||||
|
|
||||||
CMD [ "./webhook", "-hooks", "hooks.yaml", "-verbose" ]
|
CMD [ "./webhook", "-hooks", "hooks.yaml", "-verbose" ]
|
||||||
|
|
Loading…
Reference in a new issue