dotnet-dockerfile
Installation
SKILL.md
.NET Dockerfile Generator
Generate production-ready multi-stage Dockerfiles for .NET applications.
Workflow
- Determine .NET version (8, 9, or 10) from project file or ask user
- Identify project type: ASP.NET Core web app, API, worker service, or console app
- Locate project file path (e.g.,
src/MyApp/MyApp.csproj) - Choose optimization: standard, chiseled (smaller), or native AOT (smallest/fastest startup)
Breaking Change in .NET 10: Ubuntu is now the default Linux distribution for all .NET container images. Debian images are no longer provided. Tags like
10.0,10.0-noble, and10.0-noble-chiseledall use Ubuntu 24.04 "Noble Numbat".