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 967aa96 commit 3e842cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ RUN pnpm install --frozen-lockfile
# Instalar dependências e garantir versões compatíveis do Prisma
RUN cd apps/api && \
pnpm add @prisma/[email protected] && \
pnpm add -D [email protected] && \
pnpm install

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

# Build após garantir que o Prisma Client foi gerado
RUN cd apps/api && \
Expand Down

0 comments on commit 3e842cd

Please sign in to comment.