add healthcheck
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Michael Grote 2024-07-30 22:31:18 +02:00
parent ad4365c6ec
commit bf7b49c855

View file

@ -14,3 +14,7 @@ RUN apk update --no-cache && \
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
CMD ["/run.sh"]
# health check
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -s smtp://localhost:25 -v >/dev/null 2>&1