FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build WORKDIR /source COPY . . RUN dotnet restore "./tytdemail.csproj" --disable-parallel RUN dotnet publish "./tytdemail.csproj" -c release -o /app --no-restore FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal WORKDIR /app COPY --from=build /app ./ EXPOSE 5130 ENTRYPOINT ["dotnet","tytdemail.dll"]