diff --git a/engine/examples/dotnetcore.md b/engine/examples/dotnetcore.md index 38facac14b..20542d5964 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:sdk AS build-env +FROM mcr.microsoft.com/dotnet/core/sdk:2.2 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/dotnet:aspnetcore-runtime +FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT ["dotnet", "aspnetapp.dll"]