add backend docker build files

This commit is contained in:
刘金宝
2026-06-01 17:57:31 +08:00
parent 132155c280
commit 93d9e1c6a5
4 changed files with 63 additions and 1 deletions
+7
View File
@@ -24,6 +24,13 @@ cd backend
uvicorn app.main:app --host 127.0.0.1 --port 9000
```
Docker 构建与运行:
```powershell
docker build -t medical-consultation-agent-backend .
docker run --env-file .env -p 9000:9000 medical-consultation-agent-backend
```
## 服务依赖
MySQL 使用容器或内网服务名 `mysql`