两个 Dockerfile 中的 npm 安装命令里添加了 nodemailer

和 dotenv:
This commit is contained in:
朱潮 2026-03-31 19:30:40 +08:00
parent daa5bf345a
commit d38a737730
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ RUN pip install --no-cache-dir -r requirements.txt
# 安装 Playwright 并下载 Chromium # 安装 Playwright 并下载 Chromium
RUN pip install --no-cache-dir playwright && \ RUN pip install --no-cache-dir playwright && \
playwright install chromium playwright install chromium
RUN npm install -g playwright sharp && \ RUN npm install -g playwright sharp nodemailer dotenv && \
npx playwright install chromium npx playwright install chromium
# 复制应用代码 # 复制应用代码

View File

@ -41,7 +41,7 @@ RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r req
# 安装 Playwright 并下载 Chromium # 安装 Playwright 并下载 Chromium
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ playwright && \ RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ playwright && \
playwright install chromium playwright install chromium
RUN npm install -g playwright sharp && \ RUN npm install -g playwright sharp nodemailer dotenv && \
npx playwright install chromium npx playwright install chromium
# 安装modelscope # 安装modelscope