aspcore.dockerfile 529 B

123456789101112131415161718192021
  1. FROM mcr.microsoft.com/dotnet/sdk:6.0.100-rc.2 AS build
  2. WORKDIR /app
  3. COPY PlatformBenchmarks .
  4. RUN dotnet publish -c Release -o out
  5. FROM mcr.microsoft.com/dotnet/aspnet:6.0.0-rc.2 AS runtime
  6. ENV ASPNETCORE_URLS http://+:8080
  7. ENV DOTNET_SYSTEM_NET_SOCKETS_INLINE_COMPLETIONS 1
  8. # Full PGO
  9. ENV DOTNET_TieredPGO 1
  10. ENV DOTNET_TC_QuickJitForLoops 1
  11. ENV DOTNET_ReadyToRun 0
  12. WORKDIR /app
  13. COPY --from=build /app/out ./
  14. COPY Benchmarks/appsettings.json ./appsettings.json
  15. EXPOSE 8080
  16. ENTRYPOINT ["dotnet", "PlatformBenchmarks.dll"]