forked from balena-io/etcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-x86_64
45 lines (39 loc) · 1.09 KB
/
Dockerfile-x86_64
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
42
43
44
45
FROM ubuntu:12.04
# Install dependencies
RUN echo "deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y \
build-essential \
curl \
fuse \
git \
jq \
libasound2 \
libgconf-2-4 \
libgtk2.0-0 \
libx11-xcb1 \
libnss3 \
libxss1 \
libxtst6 \
libyaml-dev \
python \
python-pip \
python-dev \
python-software-properties \
unzip \
xvfb \
zip
# Install a C++11 compiler
RUN add-apt-repository ppa:ubuntu-toolchain-r/test \
&& apt-get update && apt-get install -y gcc-4.8 g++-4.8 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
# NodeJS
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& apt-get install -y nodejs
# See https://github.com/mapbox/node-pre-gyp/issues/165
RUN npm config set unsafe-perm=true
RUN npm config set spin=false
RUN npm install -g uglify-es@3.0.3 electron-installer-debian@0.5.1
# Python
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt