From 0d78affd3c587ac781891d2b61b99d4b510d8e20 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 13 Sep 2026 18:12:49 +0200 Subject: [PATCH] Fixed Api docker file paths --- PostFundManagement.Api/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/PostFundManagement.Api/Dockerfile b/PostFundManagement.Api/Dockerfile index eb4c63c..5771a8a 100644 --- a/PostFundManagement.Api/Dockerfile +++ b/PostFundManagement.Api/Dockerfile @@ -15,20 +15,19 @@ COPY ["PostFundManagement.Application/PostFundManagement.Application.csproj", "P COPY ["PostFundManagement.Domain/PostFundManagement.Domain.csproj", "PostFundManagement.Domain/"] COPY ["PostFundManagement.Infrastructure/PostFundManagement.Infrastructure.csproj", "PostFundManagement.Infrastructure/"] -# Restore dependencies with normal verbosity to stderr/stdout +# Restore dependencies RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj" -v n 2>&1 # Copy full source tree COPY . . -# Build the API project with stderr output -WORKDIR "/src/PostFundManagement.Api" -RUN dotnet build "PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build -v n 2>&1 +# Build the API project from /src root context +RUN dotnet build "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build -v n 2>&1 # Publish stage FROM build AS publish ARG BUILD_CONFIGURATION=Release -RUN dotnet publish "PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false -v n 2>&1 +RUN dotnet publish "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false -v n 2>&1 # Final runtime stage FROM base AS final