Skip to content

Commit

Permalink
Merge pull request #11 from Steveiwonder/develop
Browse files Browse the repository at this point in the history
Change dotnet version docker
  • Loading branch information
Steveiwonder authored Aug 25, 2023
2 parents e75e8c6 + a109832 commit b3769bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerfile.server
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /app
COPY . ./
RUN rm -f ./WSM.Server/appsettings.json
RUN rm -f ./WSM.Server/appsettings.Development.json
RUN dotnet restore
RUN dotnet publish "./WSM.Server/WSM.Server.csproj" -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS final
WORKDIR /app
COPY --from=build /app/out .
ENTRYPOINT [ "dotnet", "WSM.Server.dll" ]

0 comments on commit b3769bb

Please sign in to comment.