Skip to content

Commit

Permalink
Dockerfile: Add health check
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder authored Sep 17, 2024
1 parent 4d2ad56 commit c62a4cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ ENV LAST_UPDATE=$last_update
ENTRYPOINT [ "python3" ]

CMD [ "application.py" ]

# TODO: in docker 25 and later, we should use --start-interval and
# --start-period to perform more frequent checks on startup to speed
# up tests
HEALTHCHECK --interval=10s CMD curl --fail http://localhost:5000 || exit 1

0 comments on commit c62a4cc

Please sign in to comment.