From 3ccf3bfcfa8e217e5da93f019c755ff16ebdda73 Mon Sep 17 00:00:00 2001 From: Z User Date: Thu, 29 Oct 2026 18:34:43 +0000 Subject: [PATCH] fix: add rm -rf .next before build in Dockerfile (stale Turbopack cache) The production Docker build was caching old .next chunks. Adding 'rm -rf .next' before 'npm run build' ensures a fresh build every time, picking up code changes. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 20d75fd..ae9b8cc 100755 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,8 @@ ENV NEXT_TELEMETRY_DISABLED=1 ENV DATABASE_URL="file:/app/db/custom.db" RUN apt-get update && apt-get install -y --no-install-recommends openssl && rm -rf /var/lib/apt/lists/* RUN npx prisma generate +# Clean any stale .next cache before building +RUN rm -rf .next RUN npm run build # --- Stage 3: Runner ---