#container #health-check

app simple-web-healthcheck

A simple healthcheck for web containers

2 unstable releases

Uses new Rust 2024

new 0.2.0 May 18, 2025
0.1.0 May 18, 2025

#871 in Command line utilities

Download history 211/week @ 2025-05-14

211 downloads per month

MIT license

14KB

simple-web-healthcheck

Crates.io Version Crates.io Total Downloads GitHub Release GitHub Actions Workflow Status GitHub License

Simple healthcheck for web app containers

Usage

Provide the healthcheck URL as the first argument to the binary.

Check out the web-test-container Dockerfile for a usage example.

Dockerfile

Add as a step to your multistage container build:

# Build healthcheck
FROM rust:1.87-bookworm AS healthcheck-builder

RUN cargo install simple-web-healthcheck

# Rest of your build...
    
FROM gcr.io/distroless/cc-debian12

COPY --from=healthcheck-builder /usr/local/cargo/bin/simple-web-healthcheck /healthcheck

# Copy your app here

HEALTHCHECK --interval=10s --timeout=1s CMD ["/healthcheck", "http://127.0.0.1:8080"]

Dependencies

~4–15MB
~192K SLoC