
Description
This agent skill teaches an AI coding agent to write Dockerfiles and container setups for .NET 10 applications. It always uses multi-stage builds, compiling in the .NET SDK image and running in the slimmer ASP.NET runtime image, and includes a ready multi-stage Dockerfile pattern for a Web API. Containers run as the non-root app user, which .NET images support by default since .NET 8, and the agent is told never to run as root in production. For faster builds it copies the .csproj files and restores packages before copying source, so NuGet dependencies are cached between builds. Health checks are handled by exposing a /health/live endpoint for Kubernetes or Compose to probe, because chiseled and default aspnet images have no shell or curl for an in-image HEALTHCHECK. Install: npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill docker…
Highlights
- Multi-stage Dockerfiles with SDK build and runtime images
- Non-root containers by default
- Layer caching for NuGet restores
- Health probes via a /health/live endpoint
Ratings & Reviews
No ratings yet
Be the first to rate docker.
People also visit
docker FAQ
What does the docker skill cover?
Docker containerization for .NET 10 apps, including multi-stage builds, .NET container images, non-root users and health checks.
Why not use a HEALTHCHECK inside the image?
Chiseled and default aspnet images have no shell or curl, so the skill exposes a /health/live endpoint and lets Kubernetes or Compose probe it instead.
How does it speed up builds?
It copies .csproj files and restores before copying source code, so NuGet dependencies stay cached across builds.
How do I install it?
Run: npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill docker
What were the security audit results?
On skills.sh: Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best docker alternatives?
Popular alternatives to docker include containerize-aspnetcore, containerize-aspnet-framework and multi-stage-dockerfile. See all docker alternatives












