ben.dockerfile 625 B

123456789101112131415161718
  1. FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
  2. WORKDIR /app
  3. COPY Benchmarks .
  4. RUN dotnet publish -c Release -o out
  5. FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
  6. WORKDIR /app
  7. COPY --from=build /app/out ./
  8. ENV COMPlus_ReadyToRun 0
  9. ENV COMPlus_TC_QuickJitForLoops 1
  10. ENV COMPlus_TieredPGO 1
  11. ENV DB_CONNECTION Server=tfb-database;Database=hello_world;User Id=benchmarkdbuser;Password=benchmarkdbpass;Maximum Pool Size=256;NoResetOnClose=true;Enlist=false;Max Auto Prepare=4;Multiplexing=true;Write Coalescing Delay Us=500;Write Coalescing Buffer Threshold Bytes=1000
  12. EXPOSE 8080
  13. ENTRYPOINT ["dotnet", "Benchmarks.dll"]