File tree 2 files changed +8
-13
lines changed
OpenReservation.Notification 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/aspnet:8 .0 AS base
1
+ FROM mcr.microsoft.com/dotnet/aspnet:9 .0 AS base
2
2
USER app
3
3
WORKDIR /app
4
4
EXPOSE 8080
5
5
6
- FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
7
- ARG BUILD_CONFIGURATION=Release
6
+ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS publish
8
7
WORKDIR /src
9
8
COPY ["OpenReservation.Notification/OpenReservation.Notification.csproj" , "OpenReservation.Notification/" ]
10
9
RUN dotnet restore "OpenReservation.Notification/OpenReservation.Notification.csproj"
11
10
COPY . .
12
11
WORKDIR "/src/OpenReservation.Notification"
13
- RUN dotnet build "OpenReservation.Notification.csproj" -c $BUILD_CONFIGURATION -o /app/build
14
-
15
- FROM build AS publish
16
- ARG BUILD_CONFIGURATION=Release
17
- RUN dotnet publish "OpenReservation.Notification.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
12
+ RUN dotnet publish "OpenReservation.Notification.csproj" -o /app/publish /p:UseAppHost=false
18
13
19
14
FROM base AS final
20
15
WORKDIR /app
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net8 .0</TargetFramework >
4
+ <TargetFramework >net9 .0</TargetFramework >
5
5
<Nullable >enable</Nullable >
6
6
<ImplicitUsings >enable</ImplicitUsings >
7
7
<InvariantGlobalization >true</InvariantGlobalization >
8
8
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
9
9
</PropertyGroup >
10
10
11
11
<ItemGroup >
12
- <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 8 .0.0" />
12
+ <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 9 .0.0-* " />
13
13
<PackageReference Include =" SendGrid" Version =" 9.29.1" />
14
- <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 6.4 .0" />
15
- <PackageReference Include =" WeihanLi.Common" Version =" 1.0.61 " />
16
- <PackageReference Include =" WeihanLi.Web.Extensions" Version =" 1.7 .0" />
14
+ <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 6.8 .0" />
15
+ <PackageReference Include =" WeihanLi.Common" Version =" 1.0.70-preview-20240911-003223 " />
16
+ <PackageReference Include =" WeihanLi.Web.Extensions" Version =" 1.11 .0" />
17
17
</ItemGroup >
18
18
19
19
<ItemGroup >
You can’t perform that action at this time.
0 commit comments