Skip to content

Commit 6871cbe

Browse files
committed
test: install matching Chromium in e2e playwright Dockerfile
The base image's pre-installed Chromium can lag behind a newer Playwright pulled via crawlee[playwright], breaking browser launch with "Executable doesn't exist". Run `playwright install chromium` after the pip force-reinstall so the binary always matches the installed Playwright.
1 parent 1edc546 commit 6871cbe

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/e2e/test_crawlee/actor_source/playwright.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
66

77
RUN pip install --force-reinstall -r requirements.txt
88

9+
# Reinstall the Chromium binary so it matches the just-installed Playwright version
10+
# (the base image's pre-installed browser can lag behind a newer Playwright pulled via crawlee[playwright]).
11+
RUN playwright install chromium
12+
913
CMD ["sh", "-c", "python server.py & python -m src"]

0 commit comments

Comments
 (0)