From f5962501bc05dbf3de8aca8ab5d2915263db68fa Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 27 Nov 2023 20:20:22 +0100 Subject: [PATCH] Update targets --- docker/Dockerfile | 4 +-- .../Elsa.AllInOne.Web.csproj | 4 +-- .../Elsa.WorkflowServer.Web.csproj | 30 +++++++++---------- .../ElsaStudioWebAssembly.csproj | 21 +++++++++---- 4 files changed, 34 insertions(+), 25 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index abff3e19f..b6ca2fec9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,10 +25,10 @@ RUN dotnet restore "./src/bundles/Elsa.AllInOne.Web/Elsa.AllInOne.Web.csproj" # build and publish (UseAppHost=false creates platform independent binaries) WORKDIR /source/src/bundles/Elsa.AllInOne.Web RUN dotnet build "Elsa.AllInOne.Web.csproj" -c Release -o /app/build -RUN dotnet publish "Elsa.AllInOne.Web.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore -f net7.0 +RUN dotnet publish "Elsa.AllInOne.Web.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore -f net8.0 # move binaries into smaller base image -FROM mcr.microsoft.com/dotnet/aspnet:7.0-bullseye-slim AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim AS base WORKDIR /app COPY --from=build /app/publish ./ diff --git a/src/bundles/Elsa.AllInOne.Web/Elsa.AllInOne.Web.csproj b/src/bundles/Elsa.AllInOne.Web/Elsa.AllInOne.Web.csproj index 3ac5c9b6d..7c24b3a8f 100644 --- a/src/bundles/Elsa.AllInOne.Web/Elsa.AllInOne.Web.csproj +++ b/src/bundles/Elsa.AllInOne.Web/Elsa.AllInOne.Web.csproj @@ -1,7 +1,7 @@ - net8.0 + net7.0;net8.0 enable enable Linux @@ -20,7 +20,7 @@ - + diff --git a/src/bundles/Elsa.WorkflowServer.Web/Elsa.WorkflowServer.Web.csproj b/src/bundles/Elsa.WorkflowServer.Web/Elsa.WorkflowServer.Web.csproj index df5ff1a6b..9cc124c10 100644 --- a/src/bundles/Elsa.WorkflowServer.Web/Elsa.WorkflowServer.Web.csproj +++ b/src/bundles/Elsa.WorkflowServer.Web/Elsa.WorkflowServer.Web.csproj @@ -1,7 +1,7 @@ - net8.0 + net7.0;net8.0 enable enable Linux @@ -9,17 +9,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -44,13 +44,13 @@ - + - + - + diff --git a/src/bundles/ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj b/src/bundles/ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj index d86e94ede..b09b24518 100644 --- a/src/bundles/ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj +++ b/src/bundles/ElsaStudioWebAssembly/ElsaStudioWebAssembly.csproj @@ -1,22 +1,31 @@ - net8.0 + net7.0;net8.0 enable enable - - - - + + + + + + + - <_ContentIncludedByDefault Remove="wwwroot\index.html" /> + + + + + + + <_ContentIncludedByDefault Remove="wwwroot\index.html"/>