Fix: healthcheck cmd use WEB_PORT build arg

This commit is contained in:
Stepan Zhukovsky 2023-09-08 16:47:07 +09:00
parent 158c381ac4
commit f28b44b7fd

View File

@ -57,7 +57,7 @@ LABEL maintainer="s.zhukovskii@ispsystem.com"
LABEL me.zhukovsky.logs-collector.version=v${VERSION}
# call the health check endpoint of app
HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1
HEALTHCHECK CMD curl --fail http://localhost:${WEB_PORT} || exit 1
# run app
ENTRYPOINT [ "sh", "entrypoint.sh" ]