From 3f8d8a8a5f34389aabc89c5f12137d0b281a10a8 Mon Sep 17 00:00:00 2001 From: Han Qiao Date: Mon, 8 Apr 2024 17:03:46 +0800 Subject: [PATCH] chore: update health check to match studio docker image --- internal/start/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/start/start.go b/internal/start/start.go index 10dc642d6..7f393a2b7 100644 --- a/internal/start/start.go +++ b/internal/start/start.go @@ -852,7 +852,7 @@ EOF "HOSTNAME=0.0.0.0", }, Healthcheck: &container.HealthConfig{ - Test: []string{"CMD", "node", "-e", "require('http').get('http://127.0.0.1:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"}, + Test: []string{"CMD", "node", "-e", "fetch('http://127.0.0.1:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"}, Interval: 10 * time.Second, Timeout: 2 * time.Second, Retries: 3,