Skip to content

Commit 4a7c0ef

Browse files
ob1devpaigehargrave
authored and
paigehargrave
committed
Update from microsoft/* to mcr.microsoft.com/*. (docker#8738)
Update Dockerfile with following changes: 1. Switch .NET Core Images from legacy location at Docker Hub Registry (microsoft/*) to a new location at Microsoft Container Registry (mcr.microsoft.com/*). 2. Since Microsoft no longer supports the tag 'latest', I must set a specific version of '2.2' (current), which is the most recent stable release.
1 parent 58ae6fb commit 4a7c0ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/examples/dotnetcore.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Windows](/docker-for-windows/). Read more on [switching containers](/docker-for-
4141
the `Dockerfile` to use the DLL file of your project.
4242

4343
```dockerfile
44-
FROM microsoft/dotnet:sdk AS build-env
44+
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env
4545
WORKDIR /app
4646

4747
# Copy csproj and restore as distinct layers
@@ -53,7 +53,7 @@ COPY . ./
5353
RUN dotnet publish -c Release -o out
5454

5555
# Build runtime image
56-
FROM microsoft/dotnet:aspnetcore-runtime
56+
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
5757
WORKDIR /app
5858
COPY --from=build-env /app/out .
5959
ENTRYPOINT ["dotnet", "aspnetapp.dll"]

0 commit comments

Comments
 (0)