Update dotnetcore to 2.0 (#4205)

This commit is contained in:
Kendra Havens 2017-08-15 15:21:48 -07:00 committed by Misty Stanley-Jones
parent bb7ad4d5a6
commit a8271f4376
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ Windows](https://docs.docker.com/docker-for-windows/). Read more on [switching c
the `Dockerfile` to use the DLL file of your project.
```dockerfile
FROM microsoft/aspnetcore-build:1.1 AS build-env
FROM microsoft/aspnetcore-build:2.0 AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
@ -53,7 +53,7 @@ COPY . ./
RUN dotnet publish -c Release -o out
# Build runtime image
FROM microsoft/aspnetcore:1.1
FROM microsoft/aspnetcore:2.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
@ -99,4 +99,4 @@ $ docker run -d -p 8080:80 --name myapp aspnetapp
- [Microsoft ASP.NET Core on Docker
Hub](https://hub.docker.com/r/microsoft/aspnetcore/)
- [ASP.NET Core with Docker Tools for Visual
Studio](https://blogs.msdn.microsoft.com/webdev/2016/11/16/new-docker-tools-for-visual-studio/)
Studio](https://blogs.msdn.microsoft.com/webdev/2016/11/16/new-docker-tools-for-visual-studio/)