patch Healtcheck

- Add optional PORT
- added `-n` to jq to return expected exit code when input is empty/null
This commit is contained in:
ScribblerCoder 2024-07-19 03:06:15 +03:00 committed by GitHub
parent 82079e644a
commit 175d1cc8f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,7 +151,7 @@ COPY --chown=$UID:$GID ./backend .
EXPOSE 8080
HEALTHCHECK CMD curl --silent --fail http://localhost:8080/health | jq -e '.status == true' || exit 1
HEALTHCHECK CMD curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1
USER $UID:$GID