修复Docker容器启动时重复下载依赖的问题,改用.venv直接执行
This commit is contained in:
@@ -18,7 +18,7 @@ services:
|
||||
args:
|
||||
USE_CN_MIRROR: ${USE_CN_MIRROR:-false}
|
||||
container_name: pixelle-video-api
|
||||
command: uv run python api/app.py --host 0.0.0.0 --port 8000
|
||||
command: .venv/bin/python api/app.py --host 0.0.0.0 --port 8000
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
@@ -56,7 +56,7 @@ services:
|
||||
args:
|
||||
USE_CN_MIRROR: ${USE_CN_MIRROR:-false}
|
||||
container_name: pixelle-video-web
|
||||
command: uv run streamlit run web/app.py --server.port 8501 --server.address 0.0.0.0
|
||||
command: .venv/bin/streamlit run web/app.py --server.port 8501 --server.address 0.0.0.0
|
||||
ports:
|
||||
- "8501:8501"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user