Skip to content

fix: 修复部署容器中 uvicorn 未安装的问题#55

Merged
PolarSnowLeopard merged 1 commit into
masterfrom
fix/deploy-missing-uvicorn
May 12, 2026
Merged

fix: 修复部署容器中 uvicorn 未安装的问题#55
PolarSnowLeopard merged 1 commit into
masterfrom
fix/deploy-missing-uvicorn

Conversation

@PolarSnowLeopard
Copy link
Copy Markdown
Collaborator

Summary

  • deploy/Dockerfilepip install -e . 只安装了基础依赖,uvicorn 属于 [api] 可选依赖组未被安装,导致容器启动时报 uvicorn: command not found
  • 改为 pip install -e ".[all]" 安装全部可选依赖,与根目录 Dockerfile 保持一致

Test plan

  • CI 通过
  • 重新部署后容器正常启动,uvicorn 可用

deploy/Dockerfile 中 pip install -e . 只安装了基础依赖,
uvicorn 属于 api 可选依赖组未被包含,导致容器启动失败。
改为 pip install -e ".[all]" 安装全部可选依赖。
@PolarSnowLeopard PolarSnowLeopard merged commit a92d052 into master May 12, 2026
3 checks passed
@PolarSnowLeopard PolarSnowLeopard deleted the fix/deploy-missing-uvicorn branch May 12, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant