.Net Core Logo

.Net Core is an open source, multi-platform, and multi-purpose runtime for .Net applications developed by Microsoft.

With .Net Core you can build console and web applications using a variety of languages, like C# and F# and run them in Windows, Mac, Linux or Docker.

Created by Sandeep Kulkarni

Use multi-stage docker build for creating docker image of self-contained .Net Core console application

In this tutorial, we will use multi-stage Docker builds to illustrate how we can build an application in the first stage and in next stage, use the output from first stage to create an application image. A multi-stage build is done by creating different sections of a Dockerfile, each referencing a different base image. This allows a multi-stage build to fulfill a function previously filled by using multiple docker files, copying files between containers, or running different pipelines. [Read More]