Spaces:
Sleeping
Sleeping
# Healthcheck script for the OmniSealBench container | |
# Returns 0 if the app is running, 1 if there's an issue | |
# Try to access the application's root endpoint | |
response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:5000/) | |
if [ "$response" = "200" ]; then | |
# Application is responding correctly | |
exit 0 | |
else | |
# Application is not responding correctly | |
exit 1 | |
fi | |