Skip to content

Commit 3f82277

Browse files
committed
fix docker x12
1 parent 1ccd20e commit 3f82277

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
5050
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
5151

5252
# Copy Prisma schema, migrations, and generated client
53-
COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma
53+
RUN mkdir -p ./prisma
54+
COPY --from=builder --chown=nextjs:nodejs /app/prisma/schema.prisma ./prisma/schema.prisma
55+
COPY --from=builder --chown=nextjs:nodejs /app/prisma/migrations ./prisma/migrations
5456
COPY --from=builder --chown=nextjs:nodejs /app/node_modules/.prisma ./node_modules/.prisma
5557

5658
# Copy package.json and install Prisma CLI and Client

0 commit comments

Comments
 (0)