From e71ba99f9ca54051cc1c97bbac40f39c3c46e6b0 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Mon, 14 Sep 2026 10:38:25 +0200 Subject: [PATCH] Debugs refactor --- PostFundManagement.Api/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PostFundManagement.Api/Dockerfile b/PostFundManagement.Api/Dockerfile index 59381be..835b34f 100644 --- a/PostFundManagement.Api/Dockerfile +++ b/PostFundManagement.Api/Dockerfile @@ -6,7 +6,6 @@ EXPOSE 8080 # Stage 2: Build & Restore FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build -ARG BUILD_CONFIGURATION=Release WORKDIR /src # Copy csproj files for layer caching @@ -23,12 +22,12 @@ COPY . . # Build from the project folder using relative filename WORKDIR "/src/PostFundManagement.Api" -RUN dotnet build "PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build +RUN dotnet build "PostFundManagement.Api.csproj" -c Release -o /app/build # Stage 3: Publish FROM build AS publish ARG BUILD_CONFIGURATION=Release -RUN dotnet publish "PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false +RUN dotnet publish "PostFundManagement.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false # Stage 4: Final Runtime FROM base AS final -- 2.47.3