From f31ead1b6d2a958d3cd68413264f2c9ec1d39917 Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Sun, 19 Oct 2025 16:57:08 +0000 Subject: [PATCH] fix: adjust Dockerfile to copy all API files before restoring dependencies --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef3e5ce..f99ad66 100755 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,8 @@ RUN npm run build -- --output-path=dist/Web/browser # Build .NET Api app FROM mcr.microsoft.com/dotnet/sdk:8.0 AS api-build WORKDIR /app/api -COPY Api/*.csproj ./ -RUN dotnet restore COPY Api/ ./ +RUN dotnet restore RUN dotnet publish Api.csproj -c Release -o /app/api/build # Final runtime image