aspcore-mono-mw-pg.dockerfile 460 B

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