-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (38 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## Base Image
FROM buildpack-deps:bionic
## Package Installation (apt-get)
RUN EXTRA_CHROME_DEPS="lsb-release fonts-liberation libappindicator3-1" \
# preseed packages so that apt-get won't prompt for user input
&& echo "keyboard-configuration keyboard-configuration/layoutcode string us" | debconf-set-selections \
&& echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
# build packages
build-essential \
cmake \
openjdk-8-jre-headless `# openjdk-9 is also available, but hits #7232` \
python-pip \
python-setuptools \
python3 \
python3-pip \
# docs packages
sphinx-common \
# test packages
$EXTRA_CHROME_DEPS \
chromium-browser \
dbus-x11 \
firefox \
menu \
openbox \
ttf-mscorefonts-installer \
unzip \
xinit \
xserver-xorg \
xserver-xorg-video-dummy \
xvfb \
&& apt-get clean
## Package Installation (pip)
RUN python2 -m pip install --no-cache-dir --upgrade pip \
&& python2 -m pip install --no-cache-dir flake8==3.7.8
RUN python3 -m pip install --no-cache-dir --upgrade pip \
&& python3 -m pip install --no-cache-dir flake8==3.7.8