From f7a69c97dee9a2221a1a23c8073dc3f977df2277 Mon Sep 17 00:00:00 2001 From: Thomas Makin Date: Thu, 28 Sep 2023 13:28:34 -0400 Subject: [PATCH] docker: fixup healthcheck and ports - increase healthcheck start period - use proper port (7567) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f08cbe8..cbd749f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,13 @@ FROM node:18.18.0-bookworm-slim -ENV PORT=3001 -EXPOSE 3001 +ENV PORT=7567 +EXPOSE 7567 RUN apt update RUN apt install -y curl -HEALTHCHECK --interval=5s --timeout=30s --start-period=5s --retries=3 CMD [ "curl http://localhost/" ] +HEALTHCHECK --interval=5s --timeout=30s --start-period=30s --retries=3 CMD [ "curl", "http://127.0.0.1:7567" ] WORKDIR /sauce-app