From 9ff4380a312218d8d3ce9dd051a91ac1360425be Mon Sep 17 00:00:00 2001 From: houhuan Date: Mon, 16 Nov 2026 12:46:03 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=9E=84=E5=BB=BA=E6=97=B6=E8=B5=B0?= =?UTF-8?q?=E5=9B=BD=E5=86=85=20pip=20=E9=95=9C=E5=83=8F=E6=BA=90=EF=BC=88?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=20build-arg=20=E8=A6=86=E7=9B=96=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 60aa176..5e0822d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,12 @@ RUN apt-get update \ WORKDIR /app +# 国内构建走镜像源;海外或企业内网可 --build-arg PIP_INDEX_URL=https://pypi.org/simple/ +ARG PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ +ARG PIP_TRUSTED_HOST=mirrors.aliyun.com + COPY requirements.txt ./ -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir -i "$PIP_INDEX_URL" --trusted-host "$PIP_TRUSTED_HOST" -r requirements.txt COPY fengxiang ./fengxiang COPY order_monitor.py fetch_orders.py push_latest_order.py healthcheck.py ./