Merge pull request 'Garages3' (#70) from garages3 into main

Reviewed-on: #70
This commit was merged in pull request #70.
This commit is contained in:
2026-09-14 10:34:46 +02:00
+6 -4
View File
@@ -16,17 +16,19 @@ COPY ["PostFundManagement.Domain/PostFundManagement.Domain.csproj", "PostFundMan
COPY ["PostFundManagement.Infrastructure/PostFundManagement.Infrastructure.csproj", "PostFundManagement.Infrastructure/"]
# Restore packages
RUN dotnet restore "./PostFundManagement.Api/PostFundManagement.Api.csproj"
RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj"
# Copy full source code and build
# Copy full source code
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 $BUILD_CONFIGURATION -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 $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
# Stage 4: Final Runtime
FROM base AS final