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
211 downloads per month
14KB
simple-web-healthcheck
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