fix: copy all node_modules into Docker image (instead of selective prisma copies)
Deploy Staging / build (push) Failing after 17m59s
Deploy Staging / build (push) Failing after 17m59s
This commit is contained in:
+3
-4
@@ -17,10 +17,9 @@ COPY .next/standalone/ ./
|
|||||||
COPY .next/static ./.next/static
|
COPY .next/static ./.next/static
|
||||||
COPY public ./public
|
COPY public ./public
|
||||||
|
|
||||||
# Copy prisma CLI and schema for runtime migrations
|
# Copy all production node_modules from build context
|
||||||
COPY node_modules/prisma ./node_modules/prisma
|
# (pre-installed via npm ci --omit=dev before docker build)
|
||||||
COPY node_modules/.prisma/client ./node_modules/.prisma/client
|
COPY node_modules ./node_modules
|
||||||
COPY node_modules/@prisma ./node_modules/@prisma
|
|
||||||
COPY prisma ./prisma
|
COPY prisma ./prisma
|
||||||
|
|
||||||
# Fix Turbopack's hashed Prisma client path (if .next inside standalone)
|
# Fix Turbopack's hashed Prisma client path (if .next inside standalone)
|
||||||
|
|||||||
Reference in New Issue
Block a user