File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM public.ecr.aws/lambda/python:3.7 as build
1
+ FROM public.ecr.aws/lambda/python:3.8 as build
2
2
RUN mkdir -p /opt/bin/ && \
3
3
mkdir -p /tmp/downloads && \
4
+ yum install -y unzip && \
4
5
curl -SL https://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip > /tmp/downloads/chromedriver.zip && \
5
6
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 && \
6
7
unzip /tmp/downloads/chromedriver.zip -d /opt/bin/ && \
7
8
unzip /tmp/downloads/headless-chromium.zip -d /opt/bin/
8
9
9
- FROM public.ecr.aws/lambda/python:3.7
10
+ FROM public.ecr.aws/lambda/python:3.8
10
11
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
11
14
COPY --from=build /opt/bin/headless-chromium /opt/bin/
12
15
COPY --from=build /opt/bin/chromedriver /opt/bin/
13
16
COPY test.py ./
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This is minimum demo of headless chrome and selenium on container image on AWS L
4
4
5
5
This image goes with these versions.
6
6
7
- - Python 3.7
7
+ - Python 3.8
8
8
- serverless-chrome v1.0.0-37
9
9
- chromedriver 2.37
10
10
- selenium 3.141.0 (latest)
You can’t perform that action at this time.
0 commit comments