etcher/scripts/build/docker/Dockerfile-i686
Juan Cruz Viotti 78f36dfd16 chore: track python dependencies with pip (#1447)
We're currently hardcoding various pip dependencies in
`appveyor-install.bat` and `travis-install.sh`.

This commit moves all the dependencies to a `requirements.txt` file in
the root of the project, and makes every install script run `pip install
-r requirements.txt`.

See: https://github.com/resin-io/etcher/pull/1401#discussion_r116547053
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
2017-05-18 16:35:06 -04:00

46 lines
1.1 KiB
Plaintext

FROM erwinchang/ubuntu-12.04-32bit-build
# 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