build(deploy): 优化 uv 安装与部署并发保护

This commit is contained in:
yml2213
2026-10-23 09:59:32 +08:00
parent f074b75871
commit 331208742e
3 changed files with 78 additions and 10 deletions
+3
View File
@@ -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"]