Skip to content

Commit ac99ba3

Browse files
committed
update to dotnet9
1 parent a55b020 commit ac99ba3

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

OpenReservation.Notification/Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
1+
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
22
USER app
33
WORKDIR /app
44
EXPOSE 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
87
WORKDIR /src
98
COPY ["OpenReservation.Notification/OpenReservation.Notification.csproj", "OpenReservation.Notification/"]
109
RUN dotnet restore "OpenReservation.Notification/OpenReservation.Notification.csproj"
1110
COPY . .
1211
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
1813

1914
FROM base AS final
2015
WORKDIR /app

OpenReservation.Notification/OpenReservation.Notification.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
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>

0 commit comments

Comments
 (0)