Skip to content

Commit

Permalink
feat(docker): Added healthcheck to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperaj authored and jkuri committed Nov 10, 2017
1 parent 44a85a9 commit 5e46608
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ LABEL maintainer="Jan Kuri <[email protected]>" \

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/
Expand All @@ -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", "--"]
Expand Down

0 comments on commit 5e46608

Please sign in to comment.