nancy-mono.dockerfile 327 B

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