fix:加入健康检查

This commit is contained in:
2025-07-27 20:19:12 +08:00
parent 239de5fd61
commit c653d6a7ef
Vendored
+3
View File
@@ -53,6 +53,9 @@ pipeline {
docker rm -f $CONTAINER_NAME || true
docker run -d --name $CONTAINER_NAME \\
-p $HOST_PORT:$CONTAINER_PORT \\
--health-cmd="curl -f http://localhost:80 || exit 1" \\
--health-interval=5s \\
--health-retries=3 \\
$IMAGE_NAME
'''
}