Skip to content

Conversation

@balaboom123
Copy link
Contributor

@balaboom123 balaboom123 commented May 9, 2025

Summary

Update the Dockerfile to use Patchright instead of Playwright, addressing issue #574

Changes Made

  • Set ENV PLAYWRIGHT_BROWSERS_PATH=/ms-patchright to define the browser installation path for Patchright
  • Replaced Playwright installation commands with Patchright equivalents:
    RUN patchright install --with-deps chromium
    RUN patchright install-deps

Testing

  • Verified that the container builds successfully with the new configuration

Related Issues

Closes #574

Sorry, I deleted the repo accidentally. This PR is same to #579

- Set ENV PLAYWRIGHT_BROWSERS_PATH=/ms-patchright to define custom browser install path for Patchright.
- Replaced Playwright installation commands with Patchright equivalents:
    RUN patchright install --with-deps chromium
    RUN patchright install-deps
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mrge found 1 issue across 1 file. Review it in mrge.io

RUN playwright install --with-deps chromium
RUN playwright install-deps
# Install patchright and browsers with system dependencies
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-patchright
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CHROME_PATH environment variable still references the old path '/ms-playwright/chromium-*/chrome-linux/chrome' which is inconsistent with the new Patchright browser path '/ms-patchright'

@warmshao warmshao merged commit 0146570 into browser-use:main May 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CHROME_PERSISTENT_SESSION=true docker compose up --build 报 ERROR [browser-use-webui 7/11] RUN playwright install --with-deps chromium

2 participants