Skip to content

Commit

Permalink
Merge pull request #41 from ellisdickinson46/main
Browse files Browse the repository at this point in the history
Updated health check
  • Loading branch information
sameerdhoot authored Oct 17, 2024
2 parents d85a33b + f36ccf6 commit b447d50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Debian_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& rm -rf /var/lib/apt/lists/*

ARG WOLWEBPORT=8089
ARG WOLWEBVDIR=/wolweb
ENV WOLWEBPORT=${WOLWEBPORT}
ENV WOLWEBVDIR=${WOLWEBVDIR}

CMD ["/wolweb/wolweb"]

EXPOSE ${WOLWEBPORT}
HEALTHCHECK --interval=5s --timeout=3s \
CMD curl --silent --show-error --fail http://localhost:${WOLWEBPORT}/wolweb/health || exit 1
CMD curl --silent --show-error --fail http://localhost:${WOLWEBPORT}/${WOLWEBVDIR}/health || exit 1
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ COPY --from=builder /wolweb/static ./static
RUN apk add --no-cache curl

ARG WOLWEBPORT=8089
ARG WOLWEBVDIR=/wolweb
ENV WOLWEBPORT=${WOLWEBPORT}
ENV WOLWEBVDIR=${WOLWEBVDIR}

CMD ["/wolweb/wolweb"]

EXPOSE ${WOLWEBPORT}
HEALTHCHECK --interval=5s --timeout=3s \
CMD curl --silent --show-error --fail http://localhost:${WOLWEBPORT}/wolweb/health || exit 1
CMD curl --silent --show-error --fail http://localhost:${WOLWEBPORT}/${WOLWEBVDIR}/health || exit 1

0 comments on commit b447d50

Please sign in to comment.