feat: 添加Docker部署配置

Dockerfile: 多阶段构建, CPU版PyTorch, 模型预加载

docker-compose: 健康检查, 数据卷持久化, 环境变量注入

requirements.lock.txt: 锁定依赖版本确保构建可复现
This commit is contained in:
2026-04-18 09:32:58 +08:00
parent 78bf3862ab
commit 4c439d2d7e
4 changed files with 95 additions and 0 deletions

11
.dockerignore Normal file
View File

@@ -0,0 +1,11 @@
venv/
__pycache__/
*.pyc
.git/
.env
data/
docs/
*.md
.gitignore
.env.example
.pytest_cache/