From 2d1d202981b24768b41c7553c17ea45feb5f1dfb Mon Sep 17 00:00:00 2001 From: illusia <64828020+EchoSixHIYA@users.noreply.github.com> Date: Thu, 10 Sep 2026 20:20:09 +0800 Subject: [PATCH] fix: use valid Docker healthcheck syntax --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6329c29..b41c27d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,6 @@ USER node VOLUME ["/data"] EXPOSE 3040/tcp 39087/udp 40000-40099/udp HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ - CMD-SHELL if [ "$WEBSPEAK_MODE" = "relay" ]; then node -e "process.exit(0)"; else node -e "fetch('http://127.0.0.1:3040/health').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))"; fi + CMD ["sh", "-c", "if [ \"$WEBSPEAK_MODE\" = \"relay\" ]; then node -e \"process.exit(0)\"; else node -e \"fetch('http://127.0.0.1:3040/health').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))\"; fi"] CMD ["node", "dist/index.js"]