File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM public.ecr.aws/lambda/python@sha256:d8a8324834a079dbdfc6551831325113512a147bf70003622412565f216e36e0 as build
2
2
RUN 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/
7
7
8
8
FROM public.ecr.aws/lambda/python@sha256:d8a8324834a079dbdfc6551831325113512a147bf70003622412565f216e36e0
9
9
RUN 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):
8
8
service = webdriver .ChromeService ("/opt/chromedriver" )
9
9
10
10
options .binary_location = '/opt/chrome/chrome'
11
- options .add_argument (' --headless' )
11
+ options .add_argument (" --headless=new" )
12
12
options .add_argument ('--no-sandbox' )
13
13
options .add_argument ("--disable-gpu" )
14
14
options .add_argument ("--window-size=1280x1696" )
You can’t perform that action at this time.
0 commit comments