aspcore-mono-mw.dockerfile 348 B

1234567891011
  1. FROM microsoft/dotnet:2.1-sdk-stretch AS build
  2. WORKDIR /app
  3. COPY Benchmarks .
  4. RUN dotnet publish -c Release -o out
  5. FROM mono:5.12.0.226 AS runtime
  6. ENV ASPNETCORE_URLS http://+:8080
  7. WORKDIR /app
  8. COPY --from=build /app/out ./
  9. ENTRYPOINT ["mono", "--server", "--gc=sgen", "--gc-params=mode=throughput", "Benchmarks.exe", "scenarios=plaintext,json"]