fix docker healthcheck for nonstandard ports
This commit is contained in:
@@ -61,7 +61,7 @@ EXPOSE ${PORT:-8000}
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
||||
CMD curl -f http://localhost:8000/health || exit 1
|
||||
CMD sh -c 'curl -f http://localhost:${PORT:-8000}/health || exit 1'
|
||||
|
||||
# Debug startup
|
||||
RUN echo "=== Debug: Final startup test ===" && \
|
||||
|
||||
Reference in New Issue
Block a user