Skip to content

Commit e749050

Browse files
committed
feat: 🎉 Update to v117. Thank you #197
1 parent 45f43ee commit e749050

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM public.ecr.aws/lambda/python@sha256:d8a8324834a079dbdfc6551831325113512a147bf70003622412565f216e36e0 as build
22
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/
77

88
FROM public.ecr.aws/lambda/python@sha256:d8a8324834a079dbdfc6551831325113512a147bf70003622412565f216e36e0
99
RUN yum install atk cups-libs gtk3 libXcomposite alsa-lib \

main.py

+1-1
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)