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)