From 4675fa462380441797626ba92be00bbe4d5c5748 Mon Sep 17 00:00:00 2001 From: Levente Orban Date: Fri, 10 Oct 2025 21:29:18 +0200 Subject: [PATCH] feat: add an option to remove the landing page --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index cad6975..cc59e8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,29 +2,29 @@ FROM node:20-alpine AS builder WORKDIR /app COPY package*.json . -RUN npm ci -COPY . . +RUN npm ci --omit=dev ARG PUBLIC_LANDING_INFO ENV PUBLIC_LANDING_INFO=$PUBLIC_LANDING_INFO +COPY . . + +RUN echo $PUBLIC_LANDING_INFO RUN npm run build RUN npm prune --production FROM node:20-alpine - WORKDIR /app 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 +EXPOSE 3000 CMD [ "node", "build" ]