Discount for my course: High Performance Coding with .NET Core and C#

Gergely Kalapos

Docker and ASP.NET Core - .NET Concept of the Week - Episode 10

Posted on March 18, 2018

In this episode we take a look at docker in combination with ASP.NET Core and Visual Studio.

We will create a docker image from an ASP.NET Core 2.0 application, then we will use multi stage build to build the application in one container and then copy it into a final image which is optimised for production workload.

In the last demo we convert our 2.0 application to a 2.1 application which we will execute within an alpine linux based container.


Sample code from the video: on GitHub
Full playlist with other episodes: on YouTube

Dean North - Running ASP.NET Core in an Alpine Linux Docker Container
Scott Hanselman - Trying out new .NET Core Alpine Docker Images

Official docker documentation
Multi stage builds

.NET Core 2.1 alpine linux support