Skip to content

Commit

Permalink
refactor(NEXT): HEALTHCHECK prompt defined to Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
arg0WAK committed Jun 8, 2024
1 parent b943b42 commit 16b8914
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ COPY . .
# Base Port
EXPOSE 3000

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

# Start the app
CMD ["node", "index.js"]

0 comments on commit 16b8914

Please sign in to comment.