FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /App COPY . ./ RUN apt update RUN dotnet restore RUN dotnet publish Platforms/Server -c Release -o out FROM mcr.microsoft.com/dotnet/runtime:9.0 WORKDIR /App COPY --from=build /App/out . ENTRYPOINT ["dotnet", "Server.dll"]