build(deploy): 优化 uv 安装与部署并发保护
This commit is contained in:
@@ -7,6 +7,8 @@ services:
|
||||
args:
|
||||
# 服务器默认走阿里云镜像;本地测试设为 false。
|
||||
USE_CHINA_MIRRORS: ${USE_CHINA_MIRRORS:-true}
|
||||
# 固定 uv 版本,避免基础层重建时解析到不同版本。
|
||||
UV_VERSION: ${UV_VERSION:-0.13.5}
|
||||
restart: unless-stopped
|
||||
mem_limit: ${DOUYU_LOGIN_MEM_LIMIT:-2g}
|
||||
cpus: ${DOUYU_LOGIN_CPUS:-2}
|
||||
@@ -112,6 +114,7 @@ services:
|
||||
target: test
|
||||
args:
|
||||
USE_CHINA_MIRRORS: ${USE_CHINA_MIRRORS:-true}
|
||||
UV_VERSION: ${UV_VERSION:-0.13.5}
|
||||
profiles: ["test"]
|
||||
entrypoint: ["python", "-m", "pytest"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user