aspcore-mono.dockerfile 416 B

12345678910111213
  1. FROM mcr.microsoft.com/dotnet/core/sdk:2.1 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.json ./appsettings.json
  11. ENTRYPOINT ["mono", "--server", "--gc=sgen", "--gc-params=mode=throughput", "PlatformBenchmarks.exe"]