File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
src/BenchmarksApps/TLS/Kestrel Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,22 @@ scenarios:
208
208
- OPENSSL_VERSION="3.0.15-r1"
209
209
# lookup for openssl+branch version here https://pkgs.alpinelinux.org/packages?name=openssl&branch=v3.20&repo=&arch=x86_64
210
210
- ALPINE_BRANCH="v3.17"
211
+ load :
212
+ job : httpclient
213
+ variables :
214
+ path : /hello-world
215
+ serverPort : 8080
216
+ presetHeaders : connectionclose
217
+ connections : 32
218
+ serverScheme : https
219
+ sslProtocol : tls12
220
+
221
+ tls-handshakes-docker-azurelinux :
222
+ application :
223
+ job : dockerLinuxKestrelServer
224
+ variables :
225
+ # openssl version is already pre-installed with base image
226
+ dockerFile : dockerKestrel/src/BenchmarksApps/TLS/Kestrel/Dockerfile.azurelinux
211
227
load :
212
228
job : httpclient
213
229
variables :
Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS base
2
+ USER root
3
+ WORKDIR /app
4
+ EXPOSE 8080
5
+ EXPOSE 8081
6
+
7
+ # This stage is used to build the service project
8
+ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
9
+ ARG BUILD_CONFIGURATION=Release
10
+ WORKDIR /src
11
+ COPY ["Kestrel.csproj", "."]
12
+ RUN dotnet restore "./Kestrel.csproj"
13
+ COPY . .
14
+ WORKDIR "/src/."
15
+ RUN dotnet build "./Kestrel.csproj" -c $BUILD_CONFIGURATION -o /app/build
16
+
17
+ # This stage is used to publish the service project to be copied to the final stage
18
+ FROM build AS publish
19
+ ARG BUILD_CONFIGURATION=Release
20
+ RUN dotnet publish "./Kestrel.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
21
+
22
+ # This stage is used in production or when running from VS in regular mode
23
+ FROM base AS final
24
+ WORKDIR /app
25
+ COPY --from=publish /app/publish .
26
+
27
+ ENTRYPOINT [ "dotnet", "Kestrel.dll" ]
You can’t perform that action at this time.
0 commit comments