What problem does it solve?
This Skill solves the problem of producing working, secure, and small Docker images for .NET 10 applications that behave reliably in local development and production.
Core Features & Use Cases
- Multi-stage build guidance: Ensures SDK build stages and lightweight runtime stages are separated to reduce image size.
- Non-root production defaults: Configures containers to run with the built-in non-root user to improve security.
- Faster, cache-friendly Dockerfiles: Copies project files and restores dependencies before copying the full source to maximize layer caching.
- Operational readiness: Adds container health checks and aligns them with lightweight health endpoints for orchestration and Compose.
- .dockerignore optimization: Prevents build-context bloat and avoids unnecessary files from invalidating builds.
Quick Start
Ask the AI to generate a production-ready multi-stage Dockerfile and .dockerignore for my .NET 10 Web API, using a non-root runtime user and adding a health check that calls my /health/live endpoint.