aspcore-pgo-pg.dockerfile 701 B

12345678910111213141516171819
  1. FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
  2. WORKDIR /app
  3. COPY PlatformBenchmarks .
  4. RUN dotnet publish -c Release -o out /p:IsDatabase=true
  5. FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
  6. ENV ASPNETCORE_URLS http://+:8080
  7. WORKDIR /app
  8. COPY --from=build /app/out ./
  9. COPY PlatformBenchmarks/appsettings.postgresql.json ./appsettings.json
  10. # Switch off AoT code in libs to allow for greater instrumentation
  11. ENV COMPlus_ReadyToRun 0
  12. # Move methods with loops to Tier0 rather than Tier1 by default for greater instrumentation
  13. ENV COMPlus_TC_QuickJitForLoops 1
  14. # Switch on Profile Guided Optimization instrumentation at Tier0
  15. ENV COMPlus_TieredPGO 1
  16. ENTRYPOINT ["dotnet", "PlatformBenchmarks.dll"]