diff --git a/Dockerfile b/Dockerfile index 4f6b8b5..6078c0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/morss-helper b/morss-helper index 86f834a..724b727 100755 --- a/morss-helper +++ b/morss-helper @@ -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 $@