Skip to Main Content
ASP.NET Core MVC 2.0 Cookbook
book

ASP.NET Core MVC 2.0 Cookbook

by Jason De Oliveira, Engin Polat, Stephane Belkheraz
February 2018
Intermediate to advanced content levelIntermediate to advanced
668 pages
15h 18m
English
Packt Publishing
Content preview from ASP.NET Core MVC 2.0 Cookbook

How to do it...

DockerFiles must start with a Docker image as the base. In our case, this base image is a .NET Core 2.0 Docker image developed by Microsoft.

We can see all the images by Microsoft at: https://hub.docker.com/r/microsoft/ aspnetcore-build/.

Our DockerFile must begin with the FROM microsoft/aspnetcore-build line.

If we want, we can build our own Docker image from an operating system baseline, but there are a lot of things we should do before deploying the project to it, such as installing HTTP libraries, SSL libraries, .NET Core Runtime, and so on. We can see layers of a DockerFile of aspnetcore-build:2.0 at https://hub.docker.com/r/microsoft/dotnet/~/dockerfile/.

The second line in the DockerFile is the working directory; in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET Core and Vue.js

ASP.NET Core and Vue.js

Devlin Basilan Duldulao
Mastering ASP.NET Web API

Mastering ASP.NET Web API

Mithun Pattankar, Malendra Hurbuns

Publisher Resources

ISBN: 9781785886751Other