fc6fe7a78b
- New Apis/myai-models project: MyAiDbContext (schema myAi), TemplateEntity, ITemplateService, DbTemplateService with 10-min in-memory cache - Seeds EN+RO variants for all user-facing templates (match email, job search results email, HTML status pages, AI system prompt) - Match result email now sent in user's UI language (en/ro) - Job search results email now respects session language - Language propagates: MatchJobRequest -> token -> session -> email - Add Language column to JobSearchTokens and JobSearchSessions (default 'en') - All three Dockerfiles updated to include myai-models in build context Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
1.3 KiB
Docker
32 lines
1.3 KiB
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
ARG BUILD_CONFIGURATION=Release
|
|
WORKDIR /src
|
|
|
|
COPY Apis/cv-matcher-api/cv-matcher-api.csproj Apis/cv-matcher-api/
|
|
COPY Apis/cv-search-models/cv-search-models.csproj Apis/cv-search-models/
|
|
COPY Apis/shared-models/shared-models.csproj Apis/shared-models/
|
|
COPY Apis/cv-matcher-api-models/cv-matcher-api-models.csproj Apis/cv-matcher-api-models/
|
|
COPY Apis/myai-models/myai-models.csproj Apis/myai-models/
|
|
COPY Helpers/common-helpers/common-helpers.csproj Helpers/common-helpers/
|
|
COPY Helpers/startup-helpers/startup-helpers.csproj Helpers/startup-helpers/
|
|
|
|
RUN dotnet restore Apis/cv-matcher-api/cv-matcher-api.csproj
|
|
|
|
COPY Apis/cv-matcher-api/ Apis/cv-matcher-api/
|
|
COPY Apis/cv-search-models/ Apis/cv-search-models/
|
|
COPY Apis/shared-models/ Apis/shared-models/
|
|
COPY Apis/cv-matcher-api-models/ Apis/cv-matcher-api-models/
|
|
COPY Apis/myai-models/ Apis/myai-models/
|
|
COPY Helpers/common-helpers/ Helpers/common-helpers/
|
|
COPY Helpers/startup-helpers/ Helpers/startup-helpers/
|
|
|
|
RUN dotnet publish Apis/cv-matcher-api/cv-matcher-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", "cv-matcher-api.dll"] |