From 7f887a7031a64b1501050f6ca66000bf81a0542b Mon Sep 17 00:00:00 2001 From: samanhappy Date: Mon, 14 Apr 2025 19:56:19 +0800 Subject: [PATCH] fix: update Dockerfile to install Playwright dependencies for Chrome instead of Chromium --- .github/workflows/build.yml | 2 +- Dockerfile | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3078fdc..c510422 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,6 +44,6 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max - platforms: linux/amd64,linux/arm64 + platforms: linux/arm64 build-args: | INSTALL_EXT=${{ matrix.variant == 'full' && 'true' || 'false' }} diff --git a/Dockerfile b/Dockerfile index 504dd0c..01fc833 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,11 +19,9 @@ RUN mkdir -p $PNPM_HOME && \ ARG INSTALL_EXT=false RUN if [ "$INSTALL_EXT" = "true" ]; then \ - npx -y playwright install --with-deps chromium; \ + npx -y playwright install --with-deps chrome; \ fi -ENV PATH=$PATH:~/.cache/ms-playwright/chromium-*/chrome-linux/ - RUN uv tool install mcp-server-fetch ENV UV_PYTHON_INSTALL_MIRROR="http://mirrors.aliyun.com/pypi/simple/"