File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11FROM public.ecr.aws/lambda/python@sha256:d8a8324834a079dbdfc6551831325113512a147bf70003622412565f216e36e0 as build
22RUN yum install -y unzip && \
3- curl -Lo "/tmp/chromedriver.zip" "https://chromedriver.storage.googleapis .com/114 .0.5735.90/chromedriver_linux64 .zip" && \
4- curl -Lo "/tmp/chrome-linux .zip" "https://www.googleapis. com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1135561%2Fchrome-linux .zip?alt=media " && \
5- unzip /tmp/chromedriver.zip -d /opt/ && \
6- unzip /tmp/chrome-linux .zip -d /opt/
3+ curl -Lo "/tmp/chromedriver-linux64 .zip" "https://edgedl.me.gvt1 .com/edgedl/chrome/chrome-for-testing/117 .0.5938.92/linux64/chromedriver-linux64 .zip" && \
4+ curl -Lo "/tmp/chrome-linux64 .zip" "https://edgedl.me.gvt1. com/edgedl/chrome/chrome-for-testing/117.0.5938.92/linux64/chrome-linux64 .zip" && \
5+ unzip /tmp/chromedriver-linux64 .zip -d /opt/ && \
6+ unzip /tmp/chrome-linux64 .zip -d /opt/
77
88FROM public.ecr.aws/lambda/python@sha256:d8a8324834a079dbdfc6551831325113512a147bf70003622412565f216e36e0
99RUN yum install atk cups-libs gtk3 libXcomposite alsa-lib \
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def handler(event=None, context=None):
88 service = webdriver .ChromeService ("/opt/chromedriver" )
99
1010 options .binary_location = '/opt/chrome/chrome'
11- options .add_argument (' --headless' )
11+ options .add_argument (" --headless=new" )
1212 options .add_argument ('--no-sandbox' )
1313 options .add_argument ("--disable-gpu" )
1414 options .add_argument ("--window-size=1280x1696" )
You can’t perform that action at this time.
0 commit comments