aspcore-mono-my.dockerfile 425 B

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