From 96e6ced8daf7f5cc2bf1ee7d9415feca6d148810 Mon Sep 17 00:00:00 2001 From: Stefan Hardegger Date: Sun, 21 Sep 2025 15:37:48 +0200 Subject: [PATCH] adjustment --- frontend/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index b241dee..9b3d4cf 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -19,10 +19,9 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -# Set Node.js memory limit for build and debug options +# Set Node.js memory limit for build ENV NODE_OPTIONS="--max-old-space-size=2048" ENV NEXT_TELEMETRY_DISABLED=1 -ENV DEBUG=* # List files to ensure everything is copied correctly RUN ls -la @@ -30,6 +29,11 @@ RUN ls -la # Build the application with better error handling RUN set -e && npm run build 2>&1 | tee build.log || (echo "Build failed! Last 50 lines of output:" && tail -50 build.log && exit 1) +# Verify the build output exists +RUN ls -la .next/ || (echo ".next directory not found!" && exit 1) +RUN ls -la .next/standalone/ || (echo ".next/standalone directory not found!" && exit 1) +RUN ls -la .next/static/ || (echo ".next/static directory not found!" && exit 1) + # Production stage FROM node:18-alpine AS runner WORKDIR /app