Skip to content

Commit 99563a6

Browse files
authored
Merge pull request #1 from umihico/feature/python38
Feature/python38
2 parents bcf59de + 2f3381a commit 99563a6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
FROM public.ecr.aws/lambda/python:3.7 as build
1+
FROM public.ecr.aws/lambda/python:3.8 as build
22
RUN mkdir -p /opt/bin/ && \
33
mkdir -p /tmp/downloads && \
4+
yum install -y unzip && \
45
curl -SL https://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip > /tmp/downloads/chromedriver.zip && \
56
curl -SL https://github.com/adieuadieu/serverless-chrome/releases/download/v1.0.0-37/stable-headless-chromium-amazonlinux-2017-03.zip > /tmp/downloads/headless-chromium.zip && \
67
unzip /tmp/downloads/chromedriver.zip -d /opt/bin/ && \
78
unzip /tmp/downloads/headless-chromium.zip -d /opt/bin/
89

9-
FROM public.ecr.aws/lambda/python:3.7
10+
FROM public.ecr.aws/lambda/python:3.8
1011
RUN mkdir -p /opt/bin && pip install selenium
12+
COPY google-chrome.repo /etc/yum.repos.d/
13+
RUN yum install -y --enablerepo=google-chrome google-chrome-stable
1114
COPY --from=build /opt/bin/headless-chromium /opt/bin/
1215
COPY --from=build /opt/bin/chromedriver /opt/bin/
1316
COPY test.py ./

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is minimum demo of headless chrome and selenium on container image on AWS L
44

55
This image goes with these versions.
66

7-
- Python 3.7
7+
- Python 3.8
88
- serverless-chrome v1.0.0-37
99
- chromedriver 2.37
1010
- selenium 3.141.0 (latest)

0 commit comments

Comments
 (0)