From 7446659c0cc01c519e933180029ad48212252208 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 12 Sep 2026 11:49:26 +0200 Subject: [PATCH] Added working directory switch --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9bba6f..a5a8c03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,10 +13,11 @@ WORKDIR /app_source COPY . . -RUN dotnet restore "PostFundManagement.slnx" +WORKDIR "/app_source" +RUN dotnet build "PostFundManagement.slnx" -c Release WORKDIR "/app_source/PostFundManagement.Api" -RUN dotnet build "PostFundManagement.Api.csproj" -c Release --no-restore -o /app/build +RUN dotnet publish "PostFundManagement.Api.csproj" -c Release --no-restore -o /app/publish FROM build AS publish RUN dotnet publish "PostFundManagement.Api.csproj" -c Release --no-restore -o /app/publish -- 2.47.3