refactor: Healthcheck supports dynamic path configuration

This commit is contained in:
xuwei-fit2cloud
2026-05-14 17:26:29 +08:00
parent 46400d0ad0
commit 2865184822
+1 -1
View File
@@ -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"]