Skip to content

Commit e131ce3

Browse files
committed
dockerfile includes healthcheck
1 parent 01eebcd commit e131ce3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ ENV PORT=3000
3434
ENV HOST=0.0.0.0
3535
ENV NODE_ENV=production
3636

37+
HEALTHCHECK --interval=30s --timeout=3s --start-period=15s --retries=3 \
38+
CMD curl -f http://localhost:3000/api/v1/health || exit 1
39+
3740
# Start the application
3841
CMD ["node", ".output/server/index.mjs"]

0 commit comments

Comments
 (0)