diff --git a/Dockerfile b/Dockerfile index 621359e..e3a226b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM public.ecr.aws/lambda/python:3.8 as build +FROM public.ecr.aws/lambda/python:3.9 as build RUN yum install -y unzip && \ curl -SL https://chromedriver.storage.googleapis.com/2.43/chromedriver_linux64.zip > /tmp/chromedriver.zip && \ curl -SL https://github.com/adieuadieu/serverless-chrome/releases/download/v1.0.0-55/stable-headless-chromium-amazonlinux-2017-03.zip > /tmp/headless-chromium.zip && \ unzip /tmp/chromedriver.zip -d /opt/ && \ unzip /tmp/headless-chromium.zip -d /opt/ -FROM public.ecr.aws/lambda/python:3.8 +FROM public.ecr.aws/lambda/python:3.9 RUN yum install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm RUN pip install selenium COPY --from=build /opt/headless-chromium /opt/ diff --git a/README.md b/README.md index b67611e..868a754 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is minimum demo of headless chrome and selenium on container image on AWS L This image goes with these versions. -- Python 3.8 +- Python 3.9 - serverless-chrome v1.0.0-55 - chromium 69.0.3497.81 (stable channel) for amazonlinux:2017.03 - chromedriver 2.43