nancy.dockerfile 341 B

12345678910111213
  1. FROM mcr.microsoft.com/dotnet/core/sdk:3.1.101 AS build
  2. WORKDIR /source
  3. COPY src .
  4. RUN dotnet publish -c Release -f net471 -o /app
  5. FROM mono:6.8 AS runtime
  6. WORKDIR /app
  7. COPY --from=build /app .
  8. ENV ASPNETCORE_URLS http://+:8080
  9. EXPOSE 8080
  10. ENTRYPOINT ["mono", "--server", "--gc=sgen", "--gc-params=mode=throughput", "NancyBenchmark.exe"]