Skip to content

Commit

Permalink
Include HEALTHCHECK in Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdaly3 authored and Admiral-Piett committed Feb 24, 2024
1 parent ba9b48a commit d6568e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ COPY --from=build /go/src/github.com/Admiral-Piett/goaws/goaws ./goaws
COPY app/conf/goaws.yaml ./conf/

EXPOSE 4100

HEALTHCHECK --interval=5s --timeout=3s --retries=3 \
CMD wget localhost:4100/health -q -O - > /dev/null

ENTRYPOINT ["./goaws"]

0 comments on commit d6568e7

Please sign in to comment.