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.1 KiB
Docker
34 lines
1.1 KiB
Docker
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/
|
|
COPY Apis/cv-matcher-api-models/cv-matcher-api-models.csproj Apis/cv-matcher-api-models/
|
|
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 Apis/api/api.csproj
|
|
|
|
COPY Apis/api/ Apis/api/
|
|
COPY Apis/common/ Apis/common/
|
|
COPY Apis/api-models/ Apis/api-models/
|
|
COPY Apis/cv-matcher-api-models/ Apis/cv-matcher-api-models/
|
|
COPY Apis/myai-data/ Apis/myai-data/
|
|
COPY Apis/shared-data/ Apis/shared-data/
|
|
COPY Helpers/startup-helpers/ Helpers/startup-helpers/
|
|
|
|
RUN dotnet publish Apis/api/api.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
|
WORKDIR /app
|
|
EXPOSE 8080
|
|
ENV ASPNETCORE_URLS=http://0.0.0.0:8080
|
|
|
|
COPY --from=build /app/publish .
|
|
|
|
ENTRYPOINT ["dotnet", "api.dll"]
|