From ef6005e6489b5dd16f3aad8c9f3cc554b35f2134 Mon Sep 17 00:00:00 2001 From: Levente Orban Date: Fri, 10 Oct 2025 18:27:58 +0200 Subject: [PATCH] feat: add an option to remove the landing page --- .dockerignore | 1 + Dockerfile | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.dockerignore b/.dockerignore index 8c477d6..a8cbd1c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,6 +5,7 @@ yarn-error.log* .git .gitignore README.md +.env .env.* !.env.example .nyc_output diff --git a/Dockerfile b/Dockerfile index 2a90cd8..a44214f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,6 @@ COPY package*.json . RUN npm ci COPY . . -COPY .env .env - -EXPOSE 3000 - -ENV PORT 3000 -ENV HOSTNAME "0.0.0.0" RUN npm run build RUN npm prune --production @@ -22,6 +16,11 @@ COPY --from=builder /app/build build/ COPY --from=builder /app/node_modules node_modules/ COPY package.json . +EXPOSE 3000 + +ENV PORT 3000 +ENV HOSTNAME "0.0.0.0" + HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/healthz || exit 1