diff --git a/docker/Dockerfile b/docker/Dockerfile index 45be42a..130a273 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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/ diff --git a/requirements-docker.txt b/requirements-docker.txt index fed4ae1..dd236a8 100644 --- a/requirements-docker.txt +++ b/requirements-docker.txt @@ -76,8 +76,9 @@ aioredis==2.0.1 polars[rtcompat]==1.42.1 # 钉版+[rtcompat]:NAS CPU(Synology Celeron)无 AVX2,plain polars 即便 1.42.1 也 SIGILL(exit132);需 [rtcompat] 拉 polars-runtime-compat 兜底。pre-init-rebuild 实证(有 polars-runtime-compat 才跑得通)。勿改回 >= scipy==1.15.3 bottleneck==1.6.0 -# peewee:vnpy_sqlite 声明 >=3.17.9 但 VPS 生产实证 3.17.3 跑通(lock 真相) -peewee==3.17.3 +# ⚠️ peewee 不可在此钉版:vnpy_sqlite 声明 >=3.17.9,钉 3.17.3(VPS 生产实证版) +# 会与之互斥致 ResolutionImpossible(2026-08-15 二次构建实证)。主清单由 resolver +# 装 vnpy_sqlite 满足版,Dockerfile 末步再显式降级 peewee==3.17.3 对齐 VPS。 alphalens-reloaded==0.4.6 scikit-learn==1.7.2 lightgbm==4.6.0