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 2, 2025
1 parent 5ed112d commit c3896b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ WORKDIR /app/apps/api

EXPOSE 3333

HEALTHCHECK --interval=30s --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://localhost:3333/health || exit 1
RUN pnpm prisma generate --schema=./prisma/schema.prisma && \
pnpm prisma migrate deploy

# HEALTHCHECK --interval=30s --timeout=3s \
# CMD wget --no-verbose --tries=1 --spider http://localhost:3333/health || exit 1

# Comando de inicialização
CMD ["pnpm", "start"]

0 comments on commit c3896b2

Please sign in to comment.