Dockerfile 459 B

123456789101112
  1. FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
  2. WORKDIR /app
  3. COPY . ./
  4. RUN ./build.sh
  5. RUN sed -i "s/<AuthEndpoint>/${AuthEndpoint}/g" output/appsettings.json
  6. RUN sed -i "s/<AuthApiKey>/${AuthApiKey}/g" output/appsettings.json
  7. RUN sed -i "s/<DatabaseConnectionString>/${ConnectionString}/g" output/appsettings.json
  8. FROM mcr.microsoft.com/dotnet/aspnet:5.0
  9. WORKDIR /app
  10. COPY --from=build-env /app/output .
  11. ENTRYPOINT ["dotnet", "Robware.Api.Mailboxes.dll"]