From f1d2bfbe4487ea143bd3f6494734ea173c342e3f Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 19 Mar 2026 23:17:53 +0700 Subject: [PATCH] 690319:2317 Update Backend & Frontend dep. #04 --- frontend/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 857a81e..1c2c5a5 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -57,9 +57,12 @@ ENV NEXT_TELEMETRY_DISABLED=1 # nested App Router paths. Redirect .next output to ultra-short root path /n # to minimise overlay nesting depth, then move back after build completes. RUN mkdir /n && ln -s /n .next && \ - pnpm run build --webpack && \ + pnpm run build && \ rm .next && mv /n .next +# Verify standalone build was created +RUN ls -la /w/frontend/.next/standalone/ || (echo "ERROR: Standalone build not found!" && exit 1) + # ========================= # Stage 3: Production Runtime @@ -82,7 +85,10 @@ RUN apk add --no-cache curl # Copy standalone output from build COPY --from=build --chown=nextjs:nextjs /w/frontend/.next/standalone ./ -COPY --from=build --chown=nextjs:nextjs /w/frontend/.next/static ./frontend/.next/static +COPY --from=build --chown=nextjs:nextjs /w/frontend/.next/static ./.next/static + +# Debug: Verify files exist +RUN ls -la ./ && ls -la ./.next/ && ls -la ./.next/static/ || (echo "ERROR: Required files not found!" && exit 1) USER nextjs