From beb874df9d680bced9d87154b49621604bee36ad Mon Sep 17 00:00:00 2001 From: Krzysztof Madej Date: Sun, 12 Apr 2020 20:27:59 +0200 Subject: [PATCH] Updated dotnet core images in DOCKERFILE Since dotnet core 2.2 is out of support I would propose to update script to latest LTS dotnet core version. --- engine/examples/dotnetcore.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/examples/dotnetcore.md b/engine/examples/dotnetcore.md index 9e076d342834..725afb523807 100644 --- a/engine/examples/dotnetcore.md +++ b/engine/examples/dotnetcore.md @@ -42,7 +42,7 @@ tutorial](https://www.asp.net/get-started) to initialize a project or clone our the `Dockerfile` to use the DLL file of your project. ```dockerfile -FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env +FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers @@ -54,7 +54,7 @@ COPY . ./ RUN dotnet publish -c Release -o out # Build runtime image -FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 +FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT ["dotnet", "aspnetapp.dll"]