Skip to content

Commit

Permalink
health check for 2 days
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky2077 authored Jul 25, 2024
1 parent ab048d3 commit cd3de1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ COPY ./bin /usr/local/bin

EXPOSE 50001 50002 8000 8080

HEALTHCHECK CMD netstat -ltn | grep -c ":8080" > /dev/null; if [ 0 != $? ]; then exit 1; fi;
HEALTHCHECK --start-period=180s --retries=5760 \
CMD netstat -ltn | grep -c ":8080" > /dev/null; if [ 0 != $? ]; then exit 1; fi;

CMD ["my_init"]

0 comments on commit cd3de1f

Please sign in to comment.