Commit 0e203de4 by 江名洋

build(docker): 移除numpy源码编译步骤

1 parent e446e902
......@@ -9,16 +9,7 @@ ENV OPENBLAS_CORETYPE=Generic
WORKDIR /app
# 安装编译工具链(numpy 源码编译必需)
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc g++ gfortran libopenblas-dev liblapack-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
# 从源码编译 numpy:基线 SSE3,禁止 dispatch
RUN pip install --no-cache-dir --no-binary=numpy numpy==1.26.4 \
-Csetup-args=-Dcpu-baseline=sse3 \
-Csetup-args=-Dcpu-dispatch=none
RUN pip install --no-cache-dir -r requirements.txt
# 验证关键库是否能正常导入(在构建阶段提前暴露 SIGILL 或 缺失依赖)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!