umihico / docker-selenium-lambda

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

PR:Version Updates Thu Nov 2 01:16:03 UTC 2023 #204

Closed github-actions[bot] closed 11 months ago

github-actions[bot] commented 11 months ago

SHA256_DIGEST=f0c3116a56d167eba8021a5d7c595f969835fbe78826303326f80de00d044733 REVISION=1204232 PYTHON_VERSION=3.11.6 SELENIUM_VERSION=4.15.0 CHROME_VERSION=119.0.6045.105

diff --git a/Dockerfile b/Dockerfile index d60473b..9da98a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,16 @@ -FROM public.ecr.aws/lambda/python@sha256:9782dd06c223ec295aa24ef875bbb72d2304b73766d8023b528f04d493cea6d0 as build +FROM public.ecr.aws/lambda/python@sha256:f0c3116a56d167eba8021a5d7c595f969835fbe78826303326f80de00d044733 as build RUN yum install -y unzip && \ curl -Lo "/tmp/chromedriver-linux64.zip" "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chromedriver-linux64.zip" && \ curl -Lo "/tmp/chrome-linux64.zip" "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chrome-linux64.zip" && \ unzip /tmp/chromedriver-linux64.zip -d /opt/ && \ unzip /tmp/chrome-linux64.zip -d /opt/

-FROM public.ecr.aws/lambda/python@sha256:9782dd06c223ec295aa24ef875bbb72d2304b73766d8023b528f04d493cea6d0 +FROM public.ecr.aws/lambda/python@sha256:f0c3116a56d167eba8021a5d7c595f969835fbe78826303326f80de00d044733 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.14.0 +RUN pip install selenium==4.15.0 COPY --from=build /opt/chrome-linux64 /opt/chrome COPY --from=build /opt/chromedriver-linux64 /opt/ COPY main.py ./ diff --git a/README.md b/README.md index 909bd24..0fed612 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This image goes with these versions. [These are automatically updated and tested