Add HEALTHCHECK support, courtesy of @bretfisher

This commit is contained in:
Jérôme Petazzoni
2017-09-27 18:07:03 +02:00
parent af2d82d00a
commit aea59c757e
2 changed files with 166 additions and 86 deletions

View File

@@ -5,3 +5,6 @@ RUN gem install thin
ADD hasher.rb /
CMD ["ruby", "hasher.rb"]
EXPOSE 80
HEALTHCHECK \
--interval=1s --timeout=2s --retries=3 --start-period=1s \
CMD curl http://localhost/ || exit 1