fix(docker): generate prisma client in runner stage
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 1m19s Details

This commit is contained in:
Sidney Gomes 2026-07-22 22:06:42 -03:00
parent df1d63019e
commit a4a1f35550
1 changed files with 3 additions and 1 deletions

View File

@ -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