Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
data_report
/
daw
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0e203de4
authored
Jul 08, 2026
by
江名洋
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
build(docker): 移除numpy源码编译步骤
1 parent
e446e902
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
docker/Dockerfile
docker/Dockerfile
View file @
0e203de
...
@@ -9,16 +9,7 @@ ENV OPENBLAS_CORETYPE=Generic
...
@@ -9,16 +9,7 @@ ENV OPENBLAS_CORETYPE=Generic
WORKDIR
/app
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 .
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
RUN
pip install --no-cache-dir -r requirements.txt
# 验证关键库是否能正常导入(在构建阶段提前暴露 SIGILL 或 缺失依赖)
# 验证关键库是否能正常导入(在构建阶段提前暴露 SIGILL 或 缺失依赖)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment