From f393df0d058c772f4039b5dc73fbecbc28a7235e Mon Sep 17 00:00:00 2001 From: "mingsheng.li" Date: Fri, 25 Jul 2025 13:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9drone=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=EF=BC=9A=E4=BF=AE=E6=94=B9dockefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index d3ef484..3147db1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,12 @@ RUN apt-get update && apt-get install -y \ # 设置工作目录 WORKDIR /app +# 在安装依赖前升级 pip +RUN pip install --upgrade pip + +# 先单独安装 numpy +RUN pip install --no-cache-dir "numpy>=1.21.0" + # 复制依赖文件并安装 COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt