From 2047e440d82e02c9c7e3296666bc279f40282327 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Mon, 14 Sep 2026 09:41:47 +0200 Subject: [PATCH] Added better dotnet build handling --- PostFundManagement.Api/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PostFundManagement.Api/Dockerfile b/PostFundManagement.Api/Dockerfile index 2dc9f3c..4a1cfdf 100644 --- a/PostFundManagement.Api/Dockerfile +++ b/PostFundManagement.Api/Dockerfile @@ -21,13 +21,14 @@ RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj" # Copy full source tree COPY . . -# Force build output to stderr (1>&2) so the deployment platform captures compilation errors -RUN dotnet build --verbosity diagnostic "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build 1>&2 +# Force build output to standard output using the classic logger and explicit error dumping +RUN dotnet build --tl:off /clp:NoSummary --verbosity detailed "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build + # Publish stage FROM build AS publish ARG BUILD_CONFIGURATION=Release -RUN dotnet publish "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false 1>&2 +RUN dotnet publish "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false # Final runtime stage FROM base AS final -- 2.47.3