Commit 80ca8ea5 by 江名洋

fix(docker): 预装 NumPy 1.x 避免 pip 解析到 2.x

1 parent d44f3b5d
...@@ -9,6 +9,8 @@ ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple ...@@ -9,6 +9,8 @@ ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
WORKDIR /app WORKDIR /app
COPY requirements.txt . COPY requirements.txt .
# 强制先装 NumPy 1.x 避免 pip resolver 拉到 2.x (要求 x86-64-v2 指令集)
RUN pip install --no-cache-dir numpy==1.26.4
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!