"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "7ea572fdcabfd523845ecd92f1f699e016185961"
Unverified Commit 175d1cc8 authored by ScribblerCoder's avatar ScribblerCoder Committed by GitHub
Browse files

patch Healtcheck

- Add optional PORT
- added `-n` to jq to return expected exit code when input is empty/null
parent 82079e64
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment