From 8e37da9463d158f1015e1b6c6f45fa9f9c0d08b7 Mon Sep 17 00:00:00 2001 From: skidoodle Date: Mon, 30 Dec 2024 17:36:10 +0100 Subject: [PATCH] replace wget with curl for docker healthchecks --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b0fd082..b7bdcf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,7 +56,7 @@ USER nextjs EXPOSE 3000 ENV PORT 3000 ENV HOSTNAME "0.0.0.0" -HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "wget", "-q0", "http://localhost:3000/health" ] +HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "curl", "-f", "http://localhost:3000/health" ] # Run the nextjs app CMD ["node", "server.js"]