Commit 48736544 by 江名洋

build(deps/docker): 添加httpx依赖并完善依赖验证

新增httpx>=0.27.0至项目依赖列表,在Dockerfile构建阶段添加httpx库的导入校验,更新原有验证注释的描述内容。
1 parent 7c167420
...@@ -21,10 +21,11 @@ RUN pip install --no-cache-dir --no-binary=numpy numpy==1.26.4 \ ...@@ -21,10 +21,11 @@ RUN pip install --no-cache-dir --no-binary=numpy numpy==1.26.4 \
-Csetup-args=-Dcpu-dispatch=none -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 或 缺失依赖)
RUN python -c "import numpy; print('numpy:', numpy.__version__)" RUN python -c "import numpy; print('numpy:', numpy.__version__)"
RUN python -c "import pandas; print('pandas:', pandas.__version__)" RUN python -c "import pandas; print('pandas:', pandas.__version__)"
RUN python -c "import pydantic_core; print('pydantic-core OK')" RUN python -c "import pydantic_core; print('pydantic-core OK')"
RUN python -c "import httpx; print('httpx OK')"
COPY . . COPY . .
......
...@@ -14,3 +14,4 @@ python-dotenv>=1.0.0 ...@@ -14,3 +14,4 @@ python-dotenv>=1.0.0
jinja2>=3.1.0 jinja2>=3.1.0
python-multipart>=0.0.9 python-multipart>=0.0.9
apscheduler>=3.10.0 apscheduler>=3.10.0
httpx>=0.27.0
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!