From 27ec8fc16f4dcbdf2e8224851596d123bcd5be41 Mon Sep 17 00:00:00 2001 From: estel <690930@qq.com> Date: Mon, 11 Aug 2025 13:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20npx=20playwright=20install?= =?UTF-8?q?=20chromium?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 59660b4..f4bf5f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN chmod +x patch-ui-pro.sh && ./patch-ui-pro.sh # 注意把内存限制放在这里,避免本地开发时也被硬限制 ENV NODE_OPTIONS="--max-old-space-size=4096" -RUN corepack enable && pnpm exec playwright install && pnpm build +RUN corepack enable && pnpm exec playwright install && npx playwright install chromium && pnpm build ############################################################ # 3) 运行层 - 只有可运行文件,最小镜像