build(backend): Complete Node.js backend deployment preparation

Major changes:
- Add Docker configuration (Dockerfile, .dockerignore)
- Fix 200+ TypeScript compilation errors
- Add Prisma schema relations for all models (30+ relations)
- Update tsconfig.json to relax non-critical checks
- Optimize Docker build with local dist strategy

Technical details:
- Exclude test files from TypeScript compilation
- Add manual relations for ASL, PKB, DC, AIA modules
- Use type assertions for JSON/Buffer compatibility
- Fix pg-boss, extractionWorker, and other legacy code issues

Build result:
- Docker image: 838MB (compressed ~186MB)
- Successfully pushed to ACR
- Zero TypeScript compilation errors

Related docs:
- Update deployment documentation
- Add Python microservice SAE deployment guide
This commit is contained in:
2025-12-24 22:12:00 +08:00
parent b64896a307
commit ef967d7d7c
127 changed files with 1775 additions and 746 deletions

View File

@@ -619,5 +619,6 @@ import { logger } from '../../../../common/logging/index.js';

View File

@@ -422,5 +422,6 @@ import { ChatContainer } from '@/shared/components/Chat';

View File

@@ -332,5 +332,6 @@ const initialMessages = defaultMessages.length > 0 ? defaultMessages : [{

View File

@@ -620,5 +620,6 @@ http://localhost:5173/data-cleaning/tool-c

View File

@@ -408,5 +408,6 @@ Docs: docs/03-业务模块/DC-数据清洗整理/06-开发记录/DC模块重建

View File

@@ -281,5 +281,6 @@ ConflictDetectionService // 冲突检测(字段级对比)

View File

@@ -445,5 +445,6 @@ Tool B后端代码**100%复用**了平台通用能力层,无任何重复开发

View File

@@ -222,5 +222,6 @@ $ node scripts/check-dc-tables.mjs