mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-03-30 01:50:03 +00:00
fix: align docker health checks with runtime image
This commit is contained in:
@@ -105,7 +105,7 @@ EXPOSE 8080
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:${SERVER_PORT:-8080}/health || exit 1
|
||||
CMD wget -q -T 5 -O /dev/null http://localhost:${SERVER_PORT:-8080}/health || exit 1
|
||||
|
||||
# Run the application
|
||||
ENTRYPOINT ["/app/sub2api"]
|
||||
|
||||
Reference in New Issue
Block a user