DEV Community

Discussion on: Beginners Tutorial: Docker with ASP.NET Core

Collapse
 
jakewatkins profile image
jake watkins

Thanks for writing this. It was a huge help.
A few things for others who come along later:
I'm running windows 10 pro with VS 2017 installed
As of now the dockerfile will build but not run b/c dotnet sets up the project looking for framework version 1.1.2. To fix the dockerfile just change the from line by adding the tag for image 1.1.2 and you'll be good to go.
Also, you can use a multistage docker file to build your image so you can skip a few steps in the post. Looking at at documentation provided by Microsoft on their aspnetcore-build image you'll see how to do it. However, you still have to tag the final from with the correct framework or you won't run.
Again: thanks for writing this Bastian. Great job!

Collapse
 
schwamster profile image
Bastian

thanks for the praise. sorry for taking so long to reply. i updated the article with the 1.1.2 tag. Though i should probably update to to 2.0...

Collapse
 
schwamster profile image
Bastian

finally updated with multi-stage build docker files. should have looked at it when u suggested it :(