File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed
OpenReservation.Notification Expand file tree Collapse file tree 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
22USER app
33WORKDIR /app
44EXPOSE 8080
55
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
87WORKDIR /src
98COPY ["OpenReservation.Notification/OpenReservation.Notification.csproj" , "OpenReservation.Notification/" ]
109RUN dotnet restore "OpenReservation.Notification/OpenReservation.Notification.csproj"
1110COPY . .
1211WORKDIR "/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
1813
1914FROM base AS final
2015WORKDIR /app
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >net8 .0</TargetFramework >
4+ <TargetFramework >net9 .0</TargetFramework >
55 <Nullable >enable</Nullable >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <InvariantGlobalization >true</InvariantGlobalization >
88 <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
99 </PropertyGroup >
1010
1111 <ItemGroup >
12- <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 8 .0.0" />
12+ <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 9 .0.0-* " />
1313 <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" />
1717 </ItemGroup >
1818
1919 <ItemGroup >
You can’t perform that action at this time.
0 commit comments