From 4efe9212079f5b1e8c8f099c3ed715d8fa5f0d11 Mon Sep 17 00:00:00 2001 From: Antigravity AI Date: Sun, 28 Jun 2026 15:59:43 +0800 Subject: [PATCH] fix(docker): use npm ci inside image instead of copying host node_modules --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 338ceb5..8b327c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,9 @@ COPY .next/standalone/ ./ COPY .next/static ./.next/static COPY public ./public -# Copy all production node_modules from build context -# (pre-installed via npm ci --omit=dev before docker build) -COPY node_modules ./node_modules +# Install production dependencies inside Docker +COPY package*.json ./ +RUN npm ci --omit=dev && npm cache clean --force COPY prisma ./prisma # Fix Turbopack's hashed Prisma client path (if .next inside standalone)