From a92baca1344eb082bba0c59708aab7f35be2fde3 Mon Sep 17 00:00:00 2001 From: Nicolas Pastorello Date: Mon, 6 Jul 2026 18:06:01 -0300 Subject: [PATCH] feat: add healthcheck to Dockerfile --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 41eafc5..0c833db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,5 +32,9 @@ RUN mkdir -p docs # Expose port EXPOSE 3333 +# Health check +HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ + CMD wget --no-verbose --tries=1 --spider http://localhost:3333/api/health || exit 1 + # Default command: run the server (not interactive CLI) CMD ["npm", "run", "server"]