Skip to content

Commit

Permalink
Merge pull request #9 from umihico/feature/python3.9
Browse files Browse the repository at this point in the history
use python 3.9
  • Loading branch information
umihico authored Aug 25, 2021
2 parents af995cb + 02a5574 commit 0283eb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0283eb5

Please sign in to comment.