The ultimate guide for running your .NET 5.0 WebApi inside a Docker container.

In this guide I’d like to show the most important topics and aspects when talking about containerizing a .NET 5.0 WebApi application. There are many articles about it online but no one takes care of all aspects - until now. With this guide you’d be able to go from zero :zero: to hero :mount_fuji: when talking about containers and .NET 5.0 WebApi.

This articles focuses on building the app inside a Linux container. I won’t talk about .NET Framework (4.x) which would require the Windows platform to run.

What’s inside

The following topics are going to be considered in this guide:

  • Configuration
  • Testing
  • OpenAPI spec (Swaggerfile) generation
  • Image size optimizations
  • Container security
  • Overwriting defaults

#dotnet #docker #linux

Containerizing .NET 5.0 Web APIs: Zero to Hero
34.20 GEEK