Permalink
Browse files

feat(docker): Added healthcheck to dockerfile

  • Loading branch information...
cooperaj authored and jkuri committed Nov 8, 2017
1 parent 44a85a9 commit 5e466083f50ac2fdc663903f5600609dd4d80de6
Showing with 4 additions and 1 deletion.
  1. +4 −1 Dockerfile
@@ -46,7 +46,7 @@ LABEL maintainer="Jan Kuri <jan@bleenco.com>" \

WORKDIR /app

RUN apk --no-cache add tini sqlite git
RUN apk --no-cache add tini sqlite git wget

COPY --from=base /usr/bin/node /usr/bin/
COPY --from=base /usr/lib/libgcc* /usr/lib/libstdc* /usr/lib/
@@ -57,6 +57,9 @@ COPY --from=build /app/prod_node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY --from=build /app/src/files ./src/files

HEALTHCHECK --interval=10s --timeout=2s --start-period=20s \
CMD wget -q -O- http://localhost:6500/status || exit 1

EXPOSE 6500

ENTRYPOINT ["/sbin/tini", "--"]

0 comments on commit 5e46608

Please sign in to comment.