add healthcheck

This commit is contained in:
holzi1005 2024-12-19 11:05:04 +01:00
parent 512e81d4b6
commit c1d2592d7e

View file

@ -30,8 +30,10 @@ RUN wget https://github.com/adnanh/webhook/releases/download/${VERSION}/webhook-
RUN echo "- id: whoami-webhook" > hooks.yaml \
&& echo " execute-command: 'whoami'" >> hooks.yaml
EXPOSE 9000
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" ]