From 61b4b37111fcffb14e535fc03529db03e673fec3 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 26 Jan 2026 13:38:48 +0100 Subject: [PATCH] build --- .gitea/workflows/deploy.yml | 4 +++- Dockerfile | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index abfeb214..21269f35 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -95,7 +95,9 @@ jobs: echo "✅ Build completed successfully at: $(date -u +'%Y-%m-%d %H:%M:%S UTC')" echo "" echo "📊 Image Details:" - docker inspect registry.infra.mintel.me/mintel/klz-cables.com:latest --format=' • Size: {{.Size | div 1024 | div 1024}}MB' + IMAGE_SIZE=$(docker inspect registry.infra.mintel.me/mintel/klz-cables.com:latest --format='{{.Size}}') + IMAGE_SIZE_MB=$((IMAGE_SIZE / 1024 / 1024)) + echo " • Size: ${IMAGE_SIZE_MB}MB" docker inspect registry.infra.mintel.me/mintel/klz-cables.com:latest --format=' • Created: {{.Created}}' docker inspect registry.infra.mintel.me/mintel/klz-cables.com:latest --format=' • Architecture: {{.Architecture}}' else diff --git a/Dockerfile b/Dockerfile index 1cbb576b..9ec25dd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ COPY . . # Next.js collects completely anonymous telemetry data about general usage. # Learn more here: https://nextjs.org/telemetry # Uncomment the following line in case you want to disable telemetry during the build. -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED=1 ARG NEXT_PUBLIC_UMAMI_WEBSITE_ID ARG NEXT_PUBLIC_UMAMI_SCRIPT_URL @@ -35,7 +35,7 @@ RUN npm run build FROM base AS runner WORKDIR /app -ENV NODE_ENV production +ENV NODE_ENV=production # Uncomment the following line in case you want to disable telemetry during runtime. # ENV NEXT_TELEMETRY_DISABLED 1 @@ -57,9 +57,9 @@ USER nextjs EXPOSE 3000 -ENV PORT 3000 +ENV PORT=3000 # set hostname to localhost -ENV HOSTNAME "0.0.0.0" +ENV HOSTNAME="0.0.0.0" # server.js is created by next build from the standalone output # https://nextjs.org/docs/pages/api-reference/next-config-js/output