From d38a7377304b5e0ba14cd35bd914b77268d746d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Tue, 31 Mar 2026 19:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E4=B8=AA=20Dockerfile=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20npm=20=E5=AE=89=E8=A3=85=E5=91=BD=E4=BB=A4=E9=87=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20nodemailer=20=20=20=E5=92=8C=20do?= =?UTF-8?q?tenv=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- Dockerfile.modelscope | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f178064..d17ca36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ RUN pip install --no-cache-dir -r requirements.txt # 安装 Playwright 并下载 Chromium RUN pip install --no-cache-dir playwright && \ playwright install chromium -RUN npm install -g playwright sharp && \ +RUN npm install -g playwright sharp nodemailer dotenv && \ npx playwright install chromium # 复制应用代码 diff --git a/Dockerfile.modelscope b/Dockerfile.modelscope index b1dd0f0..9cd3a3a 100644 --- a/Dockerfile.modelscope +++ b/Dockerfile.modelscope @@ -41,7 +41,7 @@ RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r req # 安装 Playwright 并下载 Chromium RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ playwright && \ playwright install chromium -RUN npm install -g playwright sharp && \ +RUN npm install -g playwright sharp nodemailer dotenv && \ npx playwright install chromium # 安装modelscope