feat: add an option to remove the landing page

This commit is contained in:
Levente Orban
2025-10-10 10:29:32 +02:00
parent 4860b9439c
commit ffc29b9c24
2 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ on:
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/cactoide IMAGE_NAME: ${{ github.repository }}/cactoide
PUBLIC_LANDING_INFO: true
jobs: jobs:
build-and-push: build-and-push:

View File

@@ -5,6 +5,12 @@ COPY package*.json .
RUN npm ci RUN npm ci
COPY . . COPY . .
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
ENV PUBLIC_LANDING_INFO true
RUN npm run build RUN npm run build
RUN npm prune --production RUN npm prune --production
@@ -16,11 +22,6 @@ COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/ COPY --from=builder /app/node_modules node_modules/
COPY package.json . COPY package.json .
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ 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 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/healthz || exit 1