Skip to content

Commit

Permalink
Update Dockerfile to .net 7.0 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoal authored Jan 21, 2023
1 parent 55e61f8 commit cd15113
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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


Expand All @@ -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"]
ENTRYPOINT ["dotnet", "NugetUtility.dll"]

0 comments on commit cd15113

Please sign in to comment.