Merge pull request 'Changed pfm-api dockerfile paths' (#65) from garages3 into main

Reviewed-on: #65
This commit was merged in pull request #65.
This commit is contained in:
2026-09-14 10:10:49 +02:00
+2 -3
View File
@@ -16,13 +16,12 @@ COPY . .
RUN dotnet restore PostFundManagement.slnx
# 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
RUN dotnet build --tl:off "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build > /tmp/build.log 2>&1 || (echo "=== BUILD FAILED! DUMPING LOGS ===" && cat /tmp/build.log && exit 1)
RUN dotnet build /b1 "./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
RUN dotnet publish "./PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
# Final runtime stage
FROM base AS final