fix: copy .prisma directory to production image
This commit is contained in:
@@ -38,8 +38,9 @@ RUN mkdir -p /app/data && chmod 777 /app/data
|
||||
# 复制 node_modules
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
|
||||
# 复制 Prisma
|
||||
# 复制 Prisma schema 和生成的 Client
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
|
||||
|
||||
# 复制 package.json
|
||||
COPY --from=builder /app/package.json ./
|
||||
|
||||
Reference in New Issue
Block a user