aspcore-mono-pg.dockerfile 414 B

12345678910111213
  1. FROM microsoft/dotnet:2.2-sdk AS build
  2. WORKDIR /app
  3. COPY PlatformBenchmarks .
  4. RUN dotnet publish -c Release -o out
  5. FROM mono:latest AS runtime
  6. ENV ASPNETCORE_URLS http://+:8080
  7. ENV KestrelTransport Libuv
  8. WORKDIR /app
  9. COPY --from=build /app/out ./
  10. COPY Benchmarks/appsettings.postgresql.json ./appsettings.json
  11. ENTRYPOINT ["mono", "--server", "--gc=sgen", "--gc-params=mode=throughput", "PlatformBenchmarks.exe"]