Skip to content

Commit

Permalink
feat: added healthcheck to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
acaldas committed May 15, 2024
1 parent f6db1db commit 8edd478
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ ENV PORT=3000
RUN useradd -m myuser
USER myuser
CMD npx prisma db push && pnpm start

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:3000/healthz || exit 1

0 comments on commit 8edd478

Please sign in to comment.