FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env WORKDIR /app COPY . ./ RUN ./build.sh RUN sed -i "s//${AuthEndpoint}/g" output/appsettings.json RUN sed -i "s//${AuthApiKey}/g" output/appsettings.json RUN sed -i "s//${ConnectionString}/g" output/appsettings.json FROM mcr.microsoft.com/dotnet/aspnet:5.0 WORKDIR /app COPY --from=build-env /app/output . ENTRYPOINT ["dotnet", "Robware.Api.Mailboxes.dll"]