Split into Budget.Core / Budget.Infrastructure / Budget.Api projects
Budget.Core: entities, DTOs, enums, FrequencyCalculator (no EF/ASP.NET deps) Budget.Infrastructure: AppDbContext, migrations, BudgetAuthorizationService Budget.Api: controllers, middleware, Program.cs — references both projects EF and Npgsql packages moved to Infrastructure; Api retains only JwtBearer, HealthChecks, and EF.Design (needed for dotnet ef CLI). Dockerfile updated to copy all three project directories before publishing. Migration namespaces updated from Budget.Api.Data.* to Budget.Infrastructure.Data.* and model type strings updated to Budget.Core.Models.* in the snapshot. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,8 @@ RUN npm run build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS api-build
|
||||
WORKDIR /app
|
||||
COPY Budget.sln ./
|
||||
COPY src/Budget.Core/ ./src/Budget.Core/
|
||||
COPY src/Budget.Infrastructure/ ./src/Budget.Infrastructure/
|
||||
COPY src/Budget.Api/ ./src/Budget.Api/
|
||||
RUN dotnet publish src/Budget.Api/Budget.Api.csproj -c Release -o /publish
|
||||
|
||||
|
||||
Reference in New Issue
Block a user