mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: Healthcheck supports dynamic path configuration
This commit is contained in:
+1
-1
@@ -95,6 +95,6 @@ EXPOSE 3000 8000 8001 5432
|
||||
|
||||
# Add health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:8000 || exit 1
|
||||
CMD python3 -c "import os, urllib.request; urllib.request.urlopen(f'http://localhost:8000/{os.environ.get(\"CONTEXT_PATH\", \"\")}', timeout=3)" || exit 1
|
||||
|
||||
ENTRYPOINT ["sh", "start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user