What problem does it solve?
This Skill solves the problem of creating production-ready OCI containers for .NET apps without maintaining a Dockerfile, reducing setup time and configuration drift between code and container build steps.
Core Features & Use Cases
- Dockerfile-less container builds: Uses the .NET SDK container publishing target (PublishContainer) to produce OCI-compliant images directly from your project.
- Production-focused image variants: Supports chiseled/noble-chiseled images to reduce attack surface and shrink runtime footprint, including ICU variants.
- Registry publishing and CI-friendly outputs: Publishes to registries via MSBuild properties (ContainerRegistry, ContainerRepository, tags) and supports tarball outputs for CI scanning without a Docker daemon.
Use case example: You need to ship a secure ASP.NET Core API image to GHCR from a CI pipeline, with deterministic tags (like the Git commit SHA) and a small production base (noble-chiseled), without writing or maintaining a Dockerfile.
Quick Start
Run dotnet publish /t:PublishContainer --os linux --arch x64 -p ContainerRepository=mycompany/myapp-api -p ContainerFamily=noble-chiseled -p ContainerRegistry=ghcr.io -p ContainerImageTag=1.0.0.