Real-world Docker images for .NET
summary
Starts from the VS Code Docker extension multi-stage Dockerfile and shows concrete edits that cut build time and layers: remove redundant dotnet build, run dotnet publish with restore handled once, and use --chown during COPY to fix UnauthorizedAccessException when the app user writes to /app/out (demo reproduces error then shows fix). Demonstrates baking vsdbg into a debug image so VS Code attachment is instant, maps host 8080→container 5000, and proves dotnet watch hot reload works with immediate reloads and successful file writes.
AI-written summary · about
chapters (9)
- 0:00Start
- 4:15Hello World Example
- 5:12Add New Docker Files
- 14:48Remote Debugging
- 18:33Install the Dotnet Debugger
- 21:26Debugging
- 22:10Inner Loop Performance
- 23:59Inner Loop Docker File
- 29:10Key Takeaways
related talks
33mBest Practices for Production-ready .NET Docker Images
51mDocker for .NET Developers
01h 04mMastering Containers: A Practical Guide for .NET Developers
27mLet's build our first C# API on Linux with VSCode and Docker
44mHow Real is this Cross Platform .NET Thing Really?
52mBring your ASP.NET Core solutions to Kubernetes in Azure
01h 03mContainers for dotnet developers
01h 00mBring your ASP.NET Core solutions to Kubernetes in Azure
