From 3742a7f25001723dcfccc88900aa64205b297ac4 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Fri, 19 Jun 2026 09:08:03 +0000 Subject: [PATCH] fix: add HEALTHCHECK to Dockerfile for Coolify health gate Coolify inspects Docker .State.Health.Status; container needs a HEALTHCHECK instruction for the health gate to pass. Agent-Session: runner-dashboard-deploy-2026-06-19 --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index dd06eec..3bfa42c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM node:20-alpine +RUN apk add --no-cache wget + WORKDIR /app COPY server.js . @@ -7,4 +9,7 @@ COPY index.html . EXPOSE 3000 +HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ + CMD wget -qO- http://localhost:3000/healthz || exit 1 + CMD ["node", "server.js"]