umihico / docker-selenium-lambda

The simplest demo of chrome automation by python and selenium in AWS Lambda
MIT License
504 stars 119 forks source link

PR:Version Updates Wed Aug 23 23:44:49 UTC 2023 #192

Closed github-actions[bot] closed 11 months ago

github-actions[bot] commented 11 months ago

SHA256_DIGEST=489d4abc8644060e2e16db2ffaaafa157359761feaf9438bf26ed88e37e43d9c POSITION=1135561 DRIVER_VERSION=114.0.5735.90 PYTHON_VERSION=3.11.4 SELENIUM_VERSION=4.11.2 CHROME_VERSION=114.0.5735.0

diff --git a/Dockerfile b/Dockerfile index 9ac3cd2..832613a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,16 @@ -FROM public.ecr.aws/lambda/python@sha256:10dbb67ede15b5fd516be87dd71c3f7968904b0b840235720486476b34ef9b67 as build +FROM public.ecr.aws/lambda/python@sha256:489d4abc8644060e2e16db2ffaaafa157359761feaf9438bf26ed88e37e43d9c as build RUN yum install -y unzip && \ curl -Lo "/tmp/chromedriver.zip" "https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip" && \ 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" && \ unzip /tmp/chromedriver.zip -d /opt/ && \ unzip /tmp/chrome-linux.zip -d /opt/

-FROM public.ecr.aws/lambda/python@sha256:10dbb67ede15b5fd516be87dd71c3f7968904b0b840235720486476b34ef9b67 +FROM public.ecr.aws/lambda/python@sha256:489d4abc8644060e2e16db2ffaaafa157359761feaf9438bf26ed88e37e43d9c RUN yum install atk cups-libs gtk3 libXcomposite alsa-lib \ libXcursor libXdamage libXext libXi libXrandr libXScrnSaver \ libXtst pango at-spi2-atk libXt xorg-x11-server-Xvfb \ xorg-x11-xauth dbus-glib dbus-glib-devel -y -RUN pip install selenium==4.9.1 +RUN pip install selenium==4.11.2 COPY --from=build /opt/chrome-linux /opt/chrome COPY --from=build /opt/chromedriver /opt/ COPY main.py ./ diff --git a/README.md b/README.md index 9cdc5f4..344a795 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This image goes with these versions. [These are automatically updated and tested

umihico commented 11 months ago

Fix https://github.com/umihico/docker-selenium-lambda/pull/175