diff --git a/Dockerfile b/Dockerfile index b5b5a4c8..c94f6c07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env +FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env WORKDIR /src @@ -7,10 +7,10 @@ RUN dotnet restore COPY . ./ -RUN dotnet publish -f net5.0 -c Release -o out +RUN dotnet publish -f net7.0 -c Release -o out -FROM mcr.microsoft.com/dotnet/runtime:5.0 +FROM mcr.microsoft.com/dotnet/runtime:7.0 WORKDIR /src COPY --from=build-env /src/out . -ENTRYPOINT ["dotnet", "NugetUtility.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "NugetUtility.dll"]