.NET and Containers - each layer of abstraction indistinguishable from magic
summary
Creates a small .NET console app, publishes with trimming to ~17 MB, then AOT to ~1.5 MB, and pushes container images directly with dotnet publish (no Dockerfile required). Uses Docker + Dive to inspect layered images, swaps to chiseled images / distroless runtimes to reduce surface area, and runs a WASM build via wasm time producing a ~9 MB artifact. Demonstrates spinning up ~11 containers (including Postgres) locally and cleaning them up successfully.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 3:36From virtual machines to containers
- 10:40Building .NET apps
- 19:41AOT compilation
- 27:03Docker layers with Dive
- 35:36Optimizing images
- 44:11WebAssembly runtime
- 55:56Running .NET in WASM
- 1:00:34Summary
related talks
14mSmall Containers? or Small Images?
35mOptimizing Containers for Security and Scaling
01h 01mContainers/Docker - what, why and how
59mOptimize for the Cloud – Lightning-speed .NET Container Apps
49mTaking your .NET Core container solution from laptop to production
55mRecipes and Runtimes: Making Sense of Containers in 2026
47mDocker On Windows 101
01h 01mThe Velvet Revolution: Dockerizing Legacy ASP.NET Apps
