-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile-electron-tests
31 lines (27 loc) · 1.17 KB
/
Dockerfile-electron-tests
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
# docker build -f Dockerfile-electron-tests -t blocknetdx/devbuilds:electron-tests .
FROM ubuntu:bionic
RUN apt update \
&& apt install -y --no-install-recommends \
software-properties-common \
ca-certificates \
wget curl git python vim \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install node js
RUN apt-get update \
&& apt install -y --no-install-recommends gnupg \
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends \
nodejs \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt update \
&& apt install -y --no-install-recommends \
xvfb hicolor-icon-theme libcanberra-gtk* libgl1-mesa-dri \
libgl1-mesa-glx libpangox-1.0-0 libpulse0 libv4l-0 \
fonts-symbola \
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
google-chrome-stable \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /opt