aspnet / aspnet-docker

[Archived] ASP.NET Core Docker images for 1.x. Go to https://github.com/dotnet/dotnet-docker for 2.1 and up.
https://asp.net
719 stars 171 forks source link

Just trying to build .NET Core 2.0 with EF Core 2.0 to jenkins #305

Closed daddydrac closed 7 years ago

daddydrac commented 7 years ago

What is the correct Docker file to use for building a REST API from .NET Core 2.0 into a Docker Container?

natemcmaster commented 7 years ago

microsoft/aspnetcore-build:2.0. See https://github.com/aspnet/aspnet-docker/blob/master/README.aspnetcore-build.md#example-usage for more details.

Closing as this is a question, not a bug, but feel free to continue discussion.

alexsandro-xpt commented 7 years ago

@natemcmaster Why could not use microsoft/dotnet:2.0-sdk image for build? I'm using that image today. What's the difference?

natemcmaster commented 7 years ago

You could do that too. microsoft/aspnetcore-build offers additions to Microsoft/dotnet:2.0-sdk designed for common web-app scenarios. See https://github.com/aspnet/aspnet-docker/blob/master/2.0/stretch/sdk/Dockerfile