Skip to content

Commit c944e6d

Browse files
committed
Start multiple processes
1 parent f399ad5 commit c944e6d

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
.git*
22
.dockerignore
3+
# Ignore all built assets
4+
**/[b|B]in/
5+
**/[O|o]bj/

src/BenchmarksApps/TechEmpower/PlatformBenchmarks/PlatformBenchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0;net8.0;net9.0</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<IsTestAssetProject>true</IsTestAssetProject>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
22
WORKDIR /app
3-
COPY src/Platform .
4-
COPY startprocess.sh out
5-
RUN dotnet publish -c Release -o out /p:DatabaseProvider=Npgsql
3+
COPY . .
4+
RUN dotnet publish ./src/BenchmarksApps/TechEmpower/PlatformBenchmarks/PlatformBenchmarks.csproj -c Release -o out -f net9.0
5+
COPY ./src/BenchmarksApps/TechEmpower/startprocess.sh out
66

77
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
8-
ENV URLS http://+:8080
8+
ENV URLS=http://+:8080
99

1010
WORKDIR /app
1111
COPY --from=build /app/out ./
1212

1313
EXPOSE 8080
1414

15-
CMD ./startprocess.sh
15+
CMD ["./startprocess.sh"]
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
dotnet Platform.dll
2-
dotnet Platform.dll
3-
dotnet Platform.dll
4-
dotnet Platform.dll
1+
#!/bin/bash
2+
3+
dotnet ./PlatformBenchmarks.dll &
4+
dotnet ./PlatformBenchmarks.dll &
5+
dotnet ./PlatformBenchmarks.dll &
6+
dotnet ./PlatformBenchmarks.dll

0 commit comments

Comments
 (0)