Docker.HealthCheck 1.9.0

dotnet tool install --global Docker.HealthCheck --version 1.9.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Docker.HealthCheck --version 1.9.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Docker.HealthCheck&version=1.9.0                
nuke :add-package Docker.HealthCheck --version 1.9.0                

Docker.HealthCheck

.NET tool that can serve as a curl health check replacement in Docker environments using chiseled images

How to use

Example dockerfile:

FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build

RUN dotnet tool install --global Docker.HealthCheck

// Build your app here


FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled AS runtime

COPY --from=build /root/.dotnet/tools/ /tools/
HEALTHCHECK CMD ["/tools/Docker.HealthCheck", "http://localhost:8080/healthz/ready"]

How to publish

dotnet pack -c Release
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.9.0 607 1/14/2025
1.0.0 12,261 6/20/2024