-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile_base
42 lines (33 loc) · 1.58 KB
/
Dockerfile_base
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
# Stage 1: build base image with prequisite packages
FROM arm32v7/ubuntu:xenial
LABEL maintainer="tuanlm@greenglobal.vn"
# Enable QEMU for ARM to build ARM image on X86 machine
COPY ./qemu-arm-static /usr/bin/qemu-arm-static
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# Install necessary packages for the installer
RUN apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get autoremove -y
RUN apt-get install update-manager-core -y
RUN apt-get install --fix-missing -y \
apt-utils lsb-release build-essential apt-transport-https \
usbutils unzip coreutils curl git sed sudo tar udev wget \
automake cmake make libusb-1.0-0-dev libatlas-base-dev \
libopenblas-dev libprotobuf-dev libleveldb-dev libsnappy-dev \
libopencv-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev \
liblmdb-dev libxslt-dev libxml2-dev libgraphviz-dev protobuf-compiler \
byacc swig3.0 graphviz gfortran python-dev python-numpy python-pip python3 \
python3-dev python3-numpy python3-scipy python3-yaml python3-nose python3-tk python3-pip
# Run the installer
COPY pip.conf /etc/pip.conf
# RUN pip install --upgrade pip
# RUN pip install virtualenv virtualenv-tools
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python2 get-pip.py && \
python3 get-pip.py
RUN pip3 install -U "Cython>=0.23.4,<=0.26"
RUN pip3 install "pygraphviz>=1.3.1" "graphviz>=0.4.10,<=0.8" "Enum34>=1.1.6" "networkx>=2.1,<=2.1"
# Do clean jobs
RUN sudo apt-get clean && sudo apt-get autoremove