File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM python:alpine
1+ FROM lsiobase/ubuntu:bionic
22LABEL maintainer="TheLamer"
33
44RUN \
55 echo "**** install runtime packages ****" && \
6- apk add --no-cache \
7- chromium \
8- chromium-chromedriver \
9- docker && \
6+ apt-get update && \
7+ apt-get install -y --no-install-recommends \
8+ gnupg \
9+ unzip && \
10+ curl -s \
11+ https://download.docker.com/linux/debian/gpg | \
12+ apt-key add - && \
13+ curl -s \
14+ https://dl-ssl.google.com/linux/linux_signing_key.pub | \
15+ apt-key add - && \
16+ echo 'deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable' > \
17+ /etc/apt/sources.list.d/docker-ce.list && \
18+ echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' > \
19+ /etc/apt/sources.list.d/google.list && \
20+ apt-get update && \
21+ apt-get install -y --no-install-recommends \
22+ docker-ce \
23+ google-chrome-stable \
24+ python-pip \
25+ python-setuptools && \
26+ echo "**** install chrome driver ****" && \
27+ CHROME_RELEASE=$(curl -sL https://chromedriver.storage.googleapis.com/LATEST_RELEASE) && \
28+ curl -o \
29+ /tmp/chrome.zip -L \
30+ "https://chromedriver.storage.googleapis.com/${CHROME_RELEASE}/chromedriver_linux64.zip" && \
31+ cd /tmp && \
32+ unzip chrome.zip && \
33+ mv chromedriver /usr/bin/chromedriver && \
34+ chown root:root /usr/bin/chromedriver && \
35+ chmod +x /usr/bin/chromedriver && \
1036 echo "**** Install python deps ****" && \
1137 pip install --no-cache-dir \
12- requests \
13- selenium \
14- docker \
15- boto3 \
16- anybadge \
17- jinja2 && \
38+ requests \
39+ selenium \
40+ docker \
41+ boto3 \
42+ anybadge \
43+ jinja2 && \
1844 echo "**** cleanup ****" && \
45+ apt-get autoclean && \
1946 rm -rf \
47+ /var/lib/apt/lists/* \
48+ /var/tmp/* \
2049 /tmp/*
2150
2251# copy local files
2352COPY ci /ci
53+
54+ ENTRYPOINT [ "" ]
You can’t perform that action at this time.
0 commit comments