Skip to content

Commit

Permalink
Using wget instead of curl
Browse files Browse the repository at this point in the history
  • Loading branch information
sinoru committed Feb 2, 2024
1 parent a693f42 commit 735fb91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ARG TARGETPLATFORM
RUN \
--mount=type=cache,id=$TARGETPLATFORM:/var/cache/apk,target=/var/cache/apk,sharing=locked \
set -eux; \
apk add -U ca-certificates curl tini;
apk add -U ca-certificates tini wget;

COPY --link --from=builder /opt/aode-relay/target/release/relay /usr/local/bin/aode-relay

Expand All @@ -61,4 +61,5 @@ CMD ["/usr/local/bin/aode-relay"]

EXPOSE 8080

HEALTHCHECK CMD curl -sSf "localhost:$PORT/healthz" > /dev/null || exit 1
HEALTHCHECK --interval=1m --timeout=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:$PORT/healthz/ || exit 1

0 comments on commit 735fb91

Please sign in to comment.