statping/Dockerfile

16 lines
356 B
Docker
Raw Normal View History

ARG VERSION
FROM hunterlong/statup:base-v${VERSION}
2018-08-18 02:19:56 +00:00
MAINTAINER "Hunter Long (https://github.com/hunterlong)"
2018-08-16 06:22:20 +00:00
2018-11-06 01:34:02 +00:00
RUN apk --no-cache add curl jq
2018-08-16 06:22:20 +00:00
ENV IS_DOCKER=true
ENV STATUP_DIR=/app
WORKDIR /app
VOLUME /app
EXPOSE 8080
2018-11-06 01:34:02 +00:00
HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD curl -s "http://localhost:8080/health" | jq -r -e ".online==true"
2018-08-25 16:10:28 +00:00
CMD ["statup"]