Skip to content

MichaelSimons/dotnet-docker-samples

 
 

Repository files navigation

.NET Core Docker Samples

This repo contains samples that demonstrate various .NET Core Docker configurations, which you can use as the basis of your own Docker images. The samples can also be used with and without Docker.

You can pick the sample that best fits the scenario you are interested in, on Windows, macOS or Linux.

Getting Started

You can run a pre-built .NET Core sample using Docker. The source of this sample application is the dotnetapp-prod sample.

Type the following command to run the sample:

docker run microsoft/dotnet-samples

Samples

The following samples show different ways to use .NET Core images. They depend on the .NET Core 2.0 Docker images on Docker Hub, provided by the .NET Team at Microsoft. They use Docker multi-stage build and multi-arch tags where appropriate.

Building .NET Core Apps with Docker

Optimizing Container Size

Related: See .NET Core Alpine Docker Image announcement

ARM32 / Raspberry Pi

Related Repositories

See the following related Docker Hub repos:

See the following related GitHub repos:

About

.NET Core Docker samples.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 97.0%
  • CSS 2.9%
  • JavaScript 0.1%