Skip to content

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

test(docker): target Playwright cache copy command

NhatNguyenb4e155152ecf
diff --git a/deploy/docker/tests/test_security_container_posture.py b/deploy/docker/tests/test_security_container_posture.py
index 18886b67..647f2d18 100644
--- a/deploy/docker/tests/test_security_container_posture.py
+++ b/deploy/docker/tests/test_security_container_posture.py
@@ -62,7 +62,7 @@ class TestDockerfile:
# image runs as appuser, so both Chromium artifacts must be copied out
# of root's install cache.
cache_copy = re.search(
- r"RUN mkdir -p /home/appuser/\.cache/ms-playwright(?P<commands>.*?)RUN crawl4ai-doctor",
+ r"cp -r(?P<artifacts>(?:(?!&&).)*)/home/appuser/\.cache/ms-playwright/",
dockerfile,
re.DOTALL,
)