|
@@ -1,13 +1,17 @@
|
|
|
-FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
|
|
+FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
|
|
WORKDIR /app
|
|
|
COPY Benchmarks .
|
|
|
RUN dotnet publish -c Release -o out
|
|
|
|
|
|
-FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
|
|
|
-ENV DOTNET_SYSTEM_NET_SOCKETS_INLINE_COMPLETIONS 1
|
|
|
+FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
|
|
|
+
|
|
|
WORKDIR /app
|
|
|
COPY --from=build /app/out ./
|
|
|
-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
|
|
|
+
|
|
|
+ENV COMPlus_ReadyToRun 0
|
|
|
+ENV COMPlus_TC_QuickJitForLoops 1
|
|
|
+ENV COMPlus_TieredPGO 1
|
|
|
+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
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|