Skip to content

Commit

Permalink
Fix ipmon-server healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
psidex committed Jul 24, 2023
1 parent e891420 commit d712c00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ COPY . .
RUN cargo build --bin ipmon-server --release

FROM debian:bullseye-slim
RUN apt update && apt upgrade -y
RUN apt install -y wget
RUN apt update && apt install -y curl && rm -rf /var/lib/apt/lists/*
HEALTHCHECK --interval=5m --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
CMD curl --fail http://localhost:8080/health || exit 1
EXPOSE 8080
WORKDIR /app
COPY --from=build /ipmon/target/release/ipmon-server ./
Expand Down

0 comments on commit d712c00

Please sign in to comment.