From b3d43918496aaf65753f18e9642dc82add76134f Mon Sep 17 00:00:00 2001 From: Shayne Boyer Date: Sun, 15 Jul 2018 18:15:52 -0700 Subject: [PATCH 1/2] Update dotnetcore instructions * Base image for aspnetcore were migrated as of 2.1 per https://github.com/aspnet/Announcements/issues/298 * Further reading reference to Docker Hub updated to /dotnet * Add link to docs.microsoft.com --- engine/examples/dotnetcore.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/engine/examples/dotnetcore.md b/engine/examples/dotnetcore.md index 8878d5dd46..0fee8a078d 100644 --- a/engine/examples/dotnetcore.md +++ b/engine/examples/dotnetcore.md @@ -41,7 +41,7 @@ Windows](/docker-for-windows/). Read more on [switching containers](/docker-for- the `Dockerfile` to use the DLL file of your project. ```dockerfile -FROM microsoft/aspnetcore-build:2.0 AS build-env +FROM microsoft/dotnet:2.1-sdk 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:2.0 +FROM microsoft/dotnet:aspnetcore-runtime WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT ["dotnet", "aspnetapp.dll"] @@ -96,7 +96,6 @@ $ docker run -d -p 8080:80 --name myapp aspnetapp ## Further reading - [ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/) - - [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/) + - [Microsoft ASP.NET Core on Docker Hub](https://hub.docker.com/r/microsoft/dotnet/) + - [Building Docker Images for .NET Core Applications](https://docs.microsoft.com/dotnet/core/docker/building-net-docker-images) + - [Docker Tools for Visual Studio](https://docs.microsoft.com/dotnet/articles/core/docker/visual-studio-tools-for-docker) From 240a1836acacc5553910df07edc09b505376167c Mon Sep 17 00:00:00 2001 From: Shayne Boyer Date: Tue, 17 Jul 2018 08:26:44 -0700 Subject: [PATCH 2/2] Update dotnetcore.md removed version to ensure always up to date; getting latest --- engine/examples/dotnetcore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/examples/dotnetcore.md b/engine/examples/dotnetcore.md index 0fee8a078d..4a05860d53 100644 --- a/engine/examples/dotnetcore.md +++ b/engine/examples/dotnetcore.md @@ -41,7 +41,7 @@ Windows](/docker-for-windows/). Read more on [switching containers](/docker-for- the `Dockerfile` to use the DLL file of your project. ```dockerfile -FROM microsoft/dotnet:2.1-sdk AS build-env +FROM microsoft/dotnet:sdk AS build-env WORKDIR /app # Copy csproj and restore as distinct layers