From 107f2956c92d81da7d38c0d6a42ac89e2871283f Mon Sep 17 00:00:00 2001 From: "mingsheng.li" Date: Fri, 25 Jul 2025 13:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9requirement=E9=87=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E4=BE=9D=E8=B5=96=E7=9A=84=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3ef484..662c772 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,8 @@ WORKDIR /app # 复制依赖文件并安装 COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt - +#RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.txt +RUN --mount=type=cache,target=/root/.cache/pip pip install --no-warn-script-location --user --default-timeout 90 -r requirements.txt # 复制应用代码 COPY . .