From 60ff6ff9132a0d00599fd159ea0850d641073492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Tue, 12 May 2026 20:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=20PLAYWRIGHT=5FDOWNLOAD=5FHOST=20=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F=EF=BC=8C=E6=8C=87=E5=90=91=20https:?= =?UTF-8?q?//registry.npmmirror.com/-/binary/playwright=EF=BC=88=E6=B7=98?= =?UTF-8?q?=E5=AE=9D=20NPM=20=E9=95=9C=E5=83=8F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.modelscope | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.modelscope b/Dockerfile.modelscope index 79d51a7..58a366e 100644 --- a/Dockerfile.modelscope +++ b/Dockerfile.modelscope @@ -39,7 +39,8 @@ ENV PATH="/root/.cargo/bin:$PATH" COPY requirements.txt . RUN pip install --no-cache-dir --timeout 120 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn -r requirements.txt -# 安装 Playwright 并下载 Chromium +# 安装 Playwright 并下载 Chromium(使用国内镜像加速) +ENV PLAYWRIGHT_DOWNLOAD_HOST=https://registry.npmmirror.com/-/binary/playwright RUN pip install --no-cache-dir --timeout 120 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn playwright && \ playwright install chromium RUN npm install -g playwright sharp nodemailer dotenv && \