From a109832ff6ec8cc150746aa66bd8adff41e22c9c Mon Sep 17 00:00:00 2001 From: Steven Yates Date: Fri, 25 Aug 2023 09:57:43 +0100 Subject: [PATCH] Change dotnet version docker --- dockerfile.server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile.server b/dockerfile.server index 99e0096..157428c 100644 --- a/dockerfile.server +++ b/dockerfile.server @@ -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" ] \ No newline at end of file