File tree 5 files changed +25
-4
lines changed
5 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<LangVersion >10.0</LangVersion >
5
5
<TargetFrameworks >netstandard2.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks >
6
- <SamplesTargetFrameworks >net7 .0</SamplesTargetFrameworks >
6
+ <SamplesTargetFrameworks >net8 .0</SamplesTargetFrameworks >
7
7
</PropertyGroup >
8
8
<PropertyGroup >
9
9
<MobileTargetFrameworks >net7.0-ios;net7.0-android;net7.0-macos;net7.0-tvos;net8.0-ios;net8.0-android;net8.0-macos;net8.0-tvos</MobileTargetFrameworks >
Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 AS build-env
1
+ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
2
2
WORKDIR /app
3
3
4
4
# Copy csproj and restore as distinct layers
@@ -10,7 +10,7 @@ COPY . ./
10
10
RUN dotnet publish -c Release -o out
11
11
12
12
# Build runtime image
13
- FROM mcr.microsoft.com/dotnet/core/ aspnet:3.1
13
+ FROM mcr.microsoft.com/dotnet/aspnet:8.0
14
14
WORKDIR /app
15
15
COPY --from=build-env /app/out .
16
16
ENTRYPOINT ["dotnet" , "WebSocketPushServer.dll" ]
Original file line number Diff line number Diff line change @@ -4,4 +4,3 @@ services:
4
4
image : kerryjiang/websocket_pushserver
5
5
ports :
6
6
- " 4040:4040"
7
-
Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
2
+ WORKDIR /app
3
+
4
+ # Copy csproj and restore as distinct layers
5
+ COPY *.csproj ./
6
+ RUN dotnet restore
7
+
8
+ # Copy everything else and build
9
+ COPY . ./
10
+ RUN dotnet publish -c Release -o out
11
+
12
+ # Build runtime image
13
+ FROM mcr.microsoft.com/dotnet/aspnet:8.0
14
+ WORKDIR /app
15
+ COPY --from=build-env /app/out .
16
+ ENTRYPOINT ["dotnet" , "WebSocketServer.dll" ]
Original file line number Diff line number Diff line change
1
+ version : ' 2.0'
2
+ services :
3
+ websocketserver :
4
+ image : kerryjiang/websocket_echoserver
5
+ ports :
6
+ - " 4040:4040"
You can’t perform that action at this time.
0 commit comments