0c5b85e63c
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>
34 lines
1.3 KiB
Docker
34 lines
1.3 KiB
Docker
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/
|
|
COPY Apis/cv-search-data/cv-search-data.csproj Apis/cv-search-data/
|
|
COPY Apis/cv-matcher-api-models/cv-matcher-api-models.csproj Apis/cv-matcher-api-models/
|
|
COPY Apis/common/common.csproj Apis/common/
|
|
COPY Apis/myai-data/myai-data.csproj Apis/myai-data/
|
|
COPY Apis/shared-data/shared-data.csproj Apis/shared-data/
|
|
COPY Helpers/startup-helpers/startup-helpers.csproj Helpers/startup-helpers/
|
|
|
|
RUN dotnet restore Jobs/cv-search-job/cv-search-job.csproj
|
|
|
|
COPY Jobs/cv-search-job/ Jobs/cv-search-job/
|
|
COPY Jobs/job-scheduler/ Jobs/job-scheduler/
|
|
COPY Apis/cv-search-data/ Apis/cv-search-data/
|
|
COPY Apis/cv-matcher-api-models/ Apis/cv-matcher-api-models/
|
|
COPY Apis/common/ Apis/common/
|
|
COPY Apis/myai-data/ Apis/myai-data/
|
|
COPY Apis/shared-data/ Apis/shared-data/
|
|
COPY Helpers/startup-helpers/ Helpers/startup-helpers/
|
|
|
|
RUN dotnet publish Jobs/cv-search-job/cv-search-job.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/publish .
|
|
|
|
ENTRYPOINT ["dotnet", "cv-search-job.dll"]
|