From ffc29b9c2482d153bdb7d43b526eb7cc8313b1f0 Mon Sep 17 00:00:00 2001 From: Levente Orban Date: Fri, 10 Oct 2025 10:29:32 +0200 Subject: [PATCH] feat: add an option to remove the landing page --- .github/workflows/build-and-push.yml | 1 - Dockerfile | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 9b7f0cd..be6c31f 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -9,7 +9,6 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }}/cactoide - PUBLIC_LANDING_INFO: true jobs: build-and-push: diff --git a/Dockerfile b/Dockerfile index a44214f..4e68048 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,12 @@ COPY package*.json . RUN npm ci COPY . . +EXPOSE 3000 + +ENV PORT 3000 +ENV HOSTNAME "0.0.0.0" +ENV PUBLIC_LANDING_INFO true + RUN npm run build RUN npm prune --production @@ -16,11 +22,6 @@ 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