What problem does it solve?
This Skill provides best practices and patterns for containerizing .NET applications, ensuring efficient, secure, and minimal Docker images.
Core Features & Use Cases
- Multi-Stage Dockerfiles: Create lean production images by separating build and runtime environments.
dotnet publish Container Feature: Leverage .NET 8+ built-in capabilities for direct container image creation.
- Rootless Containers: Enhance security by running containers as non-privileged users.
- Base Image Selection: Guidance on choosing the optimal .NET base image (e.g., chiseled, alpine).
- Health Checks: Implement application-level health checks for container orchestration.
- Use Case: You need to deploy a new ASP.NET Core API to a containerized environment. This Skill will guide you in creating an optimized Dockerfile and using
dotnet publish to build a secure, minimal image.
Quick Start
Use the dotnet-containers skill to generate a multi-stage Dockerfile for a standard ASP.NET Core application.