From 0c5b85e63c9789aeed672ca4af80aec313f85ae7 Mon Sep 17 00:00:00 2001 From: claude Date: Thu, 28 May 2026 14:13:48 +0300 Subject: [PATCH] Add Directory.Packages.props copy to all Dockerfiles The Docker builds were failing because the centralized package version management file (Directory.Packages.props) was not being copied into the build context. This file is required for NuGet to resolve package versions in projects that don't specify explicit versions. Updated all Dockerfiles to copy Directory.Packages.props before running dotnet restore: - Apis/api/Dockerfile - Apis/cv-matcher-api/Dockerfile - Apis/rag-api/Dockerfile - Jobs/cv-cleanup-job/Dockerfile - Jobs/cv-search-job/Dockerfile - web/Dockerfile Co-Authored-By: Claude Sonnet 4.6 --- Apis/api/Dockerfile | 1 + Apis/cv-matcher-api/Dockerfile | 1 + Apis/rag-api/Dockerfile | 1 + Jobs/cv-cleanup-job/Dockerfile | 1 + Jobs/cv-search-job/Dockerfile | 1 + web/Dockerfile | 1 + 6 files changed, 6 insertions(+) diff --git a/Apis/api/Dockerfile b/Apis/api/Dockerfile index e3d147b..ada74a5 100644 --- a/Apis/api/Dockerfile +++ b/Apis/api/Dockerfile @@ -2,6 +2,7 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src +COPY Directory.Packages.props ./ COPY Apis/api/api.csproj Apis/api/ COPY Apis/common/common.csproj Apis/common/ COPY Apis/api-models/api-models.csproj Apis/api-models/ diff --git a/Apis/cv-matcher-api/Dockerfile b/Apis/cv-matcher-api/Dockerfile index aa636ce..819002c 100644 --- a/Apis/cv-matcher-api/Dockerfile +++ b/Apis/cv-matcher-api/Dockerfile @@ -2,6 +2,7 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src +COPY Directory.Packages.props ./ COPY Apis/cv-matcher-api/cv-matcher-api.csproj Apis/cv-matcher-api/ COPY Apis/cv-search-data/cv-search-data.csproj Apis/cv-search-data/ COPY Apis/cv-matcher-data/cv-matcher-data.csproj Apis/cv-matcher-data/ diff --git a/Apis/rag-api/Dockerfile b/Apis/rag-api/Dockerfile index 5284fbd..186e3e1 100644 --- a/Apis/rag-api/Dockerfile +++ b/Apis/rag-api/Dockerfile @@ -1,6 +1,7 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src +COPY Directory.Packages.props ./ COPY Apis/rag-api/rag-api.csproj Apis/rag-api/ COPY Apis/rag-data/rag-data.csproj Apis/rag-data/ diff --git a/Jobs/cv-cleanup-job/Dockerfile b/Jobs/cv-cleanup-job/Dockerfile index d2485e1..9982e49 100644 --- a/Jobs/cv-cleanup-job/Dockerfile +++ b/Jobs/cv-cleanup-job/Dockerfile @@ -1,6 +1,7 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src +COPY Directory.Packages.props ./ COPY Jobs/cv-cleanup-job/cv-cleanup-job.csproj Jobs/cv-cleanup-job/ COPY Jobs/job-scheduler/job-scheduler.csproj Jobs/job-scheduler/ diff --git a/Jobs/cv-search-job/Dockerfile b/Jobs/cv-search-job/Dockerfile index 5da6414..d1b1591 100644 --- a/Jobs/cv-search-job/Dockerfile +++ b/Jobs/cv-search-job/Dockerfile @@ -1,6 +1,7 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src +COPY Directory.Packages.props ./ COPY Jobs/cv-search-job/cv-search-job.csproj Jobs/cv-search-job/ COPY Jobs/job-scheduler/job-scheduler.csproj Jobs/job-scheduler/ diff --git a/web/Dockerfile b/web/Dockerfile index 49d964d..f38dff5 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,6 +1,7 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src +COPY Directory.Packages.props ./ COPY web/web.csproj web/ RUN dotnet restore web/web.csproj