fix(docker): generate prisma client in runner stage
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 1m19s
Details
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 1m19s
Details
This commit is contained in:
parent
df1d63019e
commit
a4a1f35550
|
|
@ -16,7 +16,9 @@ ENV NODE_ENV=production
|
|||
ENV PORT=3000
|
||||
|
||||
COPY package.json package-lock.json* bun.lock* ./
|
||||
RUN npm install --only=production
|
||||
COPY prisma ./prisma
|
||||
RUN npm install --omit=dev
|
||||
RUN npx prisma generate
|
||||
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue