feat: 添加 Docker 部署支持和多 OCR 提供商架构

- 添加完整的 Docker 配置 (Dockerfile, docker-compose.yml)
- 修复前端硬编码端口 4000,改用相对路径 /api
- 实现多 OCR 提供商架构 (Tesseract.js/Baidu/RapidOCR)
- 修复 Docker 环境中图片上传路径问题
- 添加用户设置页面和 AI 分析服务
- 更新 Prisma schema 支持 AI 分析结果
- 添加部署文档和 OCR 配置指南

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
congsh
2026-02-26 18:20:46 +08:00
parent f8472987f0
commit 358deeb380
39 changed files with 3169 additions and 71 deletions

39
.gitignore.docker Normal file
View File

@@ -0,0 +1,39 @@
# 不需要复制到 Docker 镜像的文件
# Git
.git
.gitignore
# 文档
*.md
LICENSE
# Docker
Dockerfile*
docker-compose*.yml
.dockerignore
# IDE
.vscode
.idea
*.swp
*.swo
# 测试报告
*.log
coverage
test-results
playwright-report
# 临时文件
*.tmp
.env
.env.*
# 测试图片
*.png
*.jpg
*.jpeg
!frontend/public/*.png
!frontend/public/*.jpg
!frontend/public/*.jpeg