Merge pull request #145 from sixeyed/master

Fix .NET Core images
This commit is contained in:
Bret Fisher
2020-12-14 01:55:23 -05:00
committed by GitHub
7 changed files with 29 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
WORKDIR /Result
COPY Result/Result.csproj .
@@ -8,7 +8,7 @@ COPY /Result .
RUN dotnet publish -c Release -o /out Result.csproj
# app image
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1
WORKDIR /app
ENTRYPOINT ["dotnet", "Result.dll"]