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 <noreply@anthropic.com>
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user