Browse Source

build(docker): add prisma generate step to docker build process

vtugulan 6 tháng trước cách đây
mục cha
commit
642a5a1fb8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Dockerfile

+ 1 - 0
Dockerfile

@@ -23,6 +23,7 @@ FROM base AS builder
 WORKDIR /app
 COPY --from=deps /app/node_modules ./node_modules
 COPY . .
+RUN npx prisma generate
 
 # Next.js collects completely anonymous telemetry data about general usage.
 # Learn more here: https://nextjs.org/telemetry