fix(docker): peewee钉版移出主清单改Dockerfile末步显式降级——二次构建实证peewee==3.17.3入主清单与vnpy_sqlite声明>=3.17.9互斥仍ResolutionImpossible(resolver不放过显式pin);改为主清单由resolver装满足版+末步pip install peewee==3.17.3单装降级(只校验自身依赖,VPS生产实证对齐);empyrical-reloaded同思路已在--no-deps步 [nas]
CI/CD / test (push) Successful in 19s
CI/CD / nas-deploy (push) Successful in 39s
CI/CD / nas-verify (push) Successful in 12s

This commit is contained in:
2026-08-15 09:09:06 +08:00
parent d649d59c44
commit 701c0d90ad
2 changed files with 11 additions and 6 deletions
+8 -4
View File
@@ -50,10 +50,14 @@ RUN mkdir -p /app/data /app/logs /app/config /app/temp
COPY requirements-docker.txt .
RUN pip install --no-cache-dir --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install --no-cache-dir -r requirements-docker.txt -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install --no-cache-dir --no-deps empyrical-reloaded==0.5.12 -i https://pypi.tuna.tsinghua.edu.cn/simple
# ↑ empyrical-reloaded 必须单独 --no-deps 装:其元数据伪依赖 peewee<3.17.4 与
# vnpy_sqlite 的 >=3.17.9 互斥,合入 requirements 单次解析必 ResolutionImpossible
# 包体零引用 peewee(实测),真依赖 bottleneck/numpy/pandas/scipy 已在主文件钉版。
pip install --no-cache-dir --no-deps empyrical-reloaded==0.5.12 -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install --no-cache-dir peewee==3.17.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
# ↑ 两个单独安装步骤均为解依赖死锁(2026-08-15 一/二次构建实证):
# ① empyrical-reloaded --no-deps:其元数据伪依赖 peewee<3.17.4 与 vnpy_sqlite 的
# >=3.17.9 互斥,合入 requirements 单次解析必 ResolutionImpossible;包体零引用
# peewee(实测),真依赖 bottleneck/numpy/pandas/scipy 已在主文件钉版。
# ② peewee==3.17.3 显式降级对齐 VPS 生产实证版(主清单 resolver 会按 vnpy_sqlite
# 声明装 ≥3.17.9,单装只校验自身依赖可落 3.17.3;vnpy_sqlite 实证兼容)。
# 复制应用代码(包含所有 sanguo 模块)
COPY sanguo_web/ /app/sanguo_web/