Description
I'm deploying a SeleniumBase-based scraper on AWS Lambda using a custom Docker image. My image sets up the Chrome binary and the corresponding chromedriver in the /tmp directory, and I preload the SeleniumBase driver files. However, during execution, SeleniumBase tries to download the driver again and fails due to read-only filesystem restrictions.
logs:
SeleniumBase drivers copied to /tmp
SeleniumBase driver path: /tmp/seleniumbase_driver
Warning: uc_driver not found. Getting it now:
*** chromedriver to download = 138.0.7204.92 (Latest Stable)
Downloading chromedriver-linux64.zip from:
https://storage.googleapis.com/chrome-for-testing-public/138.0.7204.92/linux64/chromedriver-linux64.zip ...
[ERROR] Error during web scraping: [Errno 30] Read-only file system: '/var/lang/lib/python3.10/site-packages/seleniumbase/drivers/chromedriver-linux64.zip'
DockerFile(Summary)
RUN wget -O /tmp/chromedriver_uc.zip "https://storage.googleapis.com/chrome-for-testing-public/138.0.7204.92/linux64/chromedriver-linux64.zip" &&
unzip /tmp/chromedriver_uc.zip -d /tmp/chromedriver_uc &&
mv /tmp/chromedriver_uc/chromedriver /tmp/chromedriver_uc/chromedriver_uc &&
chmod +x /tmp/chromedriver_uc/chromedriver_uc