docker: shift HEALTHCHECK to helper
continuous-integration/drone/push Build is failing Details

master
pictuga 2021-12-27 16:08:55 +01:00
parent ee514e2da3
commit 106f59afa1
2 changed files with 4 additions and 1 deletions

View File

@ -13,4 +13,4 @@ USER 1000:1000
ENTRYPOINT ["/bin/sh", "/app/morss-helper"]
CMD ["run"]
HEALTHCHECK CMD python -m morss.crawler http://localhost:${PORT:-8000}/ > /dev/null 2>&1
HEALTHCHECK CMD ["check"]

View File

@ -12,6 +12,9 @@ elif [ "$@" = "reload" ]; then
kill -s WINCH $pid
kill -s TERM $pid
elif [ "$@" = "check" ]; then
python -m morss.crawler http://localhost:${PORT:-8000}/ > /dev/null 2>&1
else
morss $@