feat: add health check handler

This commit is contained in:
Oleg Lobanov committed 2021-03-21 12:30:48 +01:00
1 parent d2e6d23741
commit a721dc1f31
4 files changed
+13 -2

No files matched your search

+6 -2
View File
@@ -1,6 +1,10 @@
FROM alpine:latest
RUN apk --update add ca-certificates
RUN apk --update add mailcap
RUN apk --update add ca-certificates \
mailcap \
curl
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \
CMD curl -f http://localhost/health || exit 1
VOLUME /srv
EXPOSE 80