修改drone文件的配置:修改dockefile
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
mingsheng.li 2025-07-25 13:28:06 +08:00
parent 6fc50e65d1
commit f393df0d05

View File

@ -13,6 +13,12 @@ RUN apt-get update && apt-get install -y \
# 设置工作目录 # 设置工作目录
WORKDIR /app WORKDIR /app
# 在安装依赖前升级 pip
RUN pip install --upgrade pip
# 先单独安装 numpy
RUN pip install --no-cache-dir "numpy>=1.21.0"
# 复制依赖文件并安装 # 复制依赖文件并安装
COPY requirements.txt . COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt