We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6b4fd5 commit 409b396Copy full SHA for 409b396
Dockerfile
@@ -94,9 +94,8 @@ COPY --from=builder /app/dist ./dist
94
COPY --from=builder /app/prisma ./prisma
95
COPY --from=builder /app/scripts ./scripts
96
97
-# 复制已生成的 Prisma 客户端
98
-COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
99
-COPY --from=builder /app/node_modules/@prisma ./node_modules/@prisma
+# 生成 Prisma 客户端(生产环境)
+RUN pnpm exec prisma generate
100
101
# 创建非root用户
102
RUN addgroup -g 1001 -S nodejs && \
0 commit comments