ben.dockerfile 578 B

123456789101112
  1. FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
  2. WORKDIR /app
  3. COPY Benchmarks .
  4. RUN dotnet publish -c Release -o out
  5. FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
  6. ENV DOTNET_SYSTEM_NET_SOCKETS_INLINE_COMPLETIONS 1
  7. WORKDIR /app
  8. COPY --from=build /app/out ./
  9. 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=5500
  10. ENTRYPOINT ["dotnet", "Benchmarks.dll"]