Skip to content

Commit

Permalink
chore: fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoPorfirio01 committed Jan 1, 2025
1 parent 7b2d527 commit 0e12c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN cd apps/api && \

# Gerar Prisma Client explicitamente
RUN cd apps/api && \
pnpm exec prisma generate --schema=./prisma/schema.prisma
pnpm dlx prisma generate --schema=./prisma/schema.prisma

# Build após garantir que o Prisma Client foi gerado
RUN cd apps/api && \
Expand Down Expand Up @@ -86,4 +86,4 @@ CMD ["pnpm", "start"]

# Garantir que o Prisma Client seja regenerado no ambiente de produção
RUN cd apps/api && \
pnpm exec prisma generate --schema=./prisma/schema.prisma
pnpm dlx prisma generate --schema=./prisma/schema.prisma

0 comments on commit 0e12c86

Please sign in to comment.