mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
patch Healtcheck
- Add optional PORT - added `-n` to jq to return expected exit code when input is empty/null
This commit is contained in:
parent
82079e644a
commit
175d1cc8f2
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ COPY --chown=$UID:$GID ./backend .
|
||||||
|
|
||||||
EXPOSE 8080
|
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
|
USER $UID:$GID
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue