Update TargetFramework to net8.0 in all projects
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# Use the official Microsoft ASP.NET Core runtime as the base image.
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
# Use the official Microsoft .NET SDK image to build the code.
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["Managing.Api.Workers/Managing.Api.Workers.csproj", "Managing.Api.Workers/"]
|
||||
COPY ["Managing.Bootstrap/Managing.Bootstrap.csproj", "Managing.Bootstrap/"]
|
||||
@@ -31,6 +31,5 @@ RUN dotnet publish "Managing.Api.Workers.csproj" -c Release -o /app/publish
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
COPY Managing.Api.Workers/managing_cert.pfx .
|
||||
COPY Managing.Api.Workers/appsettings.Lowpro.json ./appsettings.json
|
||||
COPY managing_cert.pfx .
|
||||
ENTRYPOINT ["dotnet", "Managing.Api.Workers.dll"]
|
||||
|
||||
Reference in New Issue
Block a user