The workshop details the fundamental workflows for using .NET with containers. It includes a variety of approaches and capabilities, such as OCI image publish, registry push, Dockerfile, cross-compilation, and chiseled containers. OCI publish is used as the default approach.
The instructions assume .NET SDK 8.0.200+. See .NET SDK version differences to compare with .NET SDK 8.0.1xx.
Instructions:
- Publish OCI images
- ASP.NET Core web apps
- Target Alpine
- Target Ubuntu Chiseled
- .NET SDK Publish Option
- Troubleshooting
Advanced instructions:
- Publish OCI image publishing reference
- Dockerfile samples
- Publishing apps within an SDK container
- Cross-compilation
- Publishing to a registry
- Controlling how your containers run
- Dynamically Adapting To Application Sizes
If you are using this repo in a talk, use this QR code to help people find the repo.
The instructions assume:
The following environment was used for the examples.
$ dotnet --version
8.0.201
$ docker --version
Docker version 24.0.5, build 24.0.5-0ubuntu1
$ uname -a
Linux mazama 6.5.0-21-generic #21-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 14:17:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux