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 80ca8ea5
authored
Jun 26, 2026
by
江名洋
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(docker): 预装 NumPy 1.x 避免 pip 解析到 2.x
1 parent
d44f3b5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
docker/Dockerfile
docker/Dockerfile
View file @
80ca8ea
...
@@ -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 . .
...
...
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