-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
43 lines (36 loc) · 1.56 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
42
43
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
RUN python3 -m pip install pip --upgrade
RUN python3 -m pip install wheel
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD
RUN add-apt-repository 'deb http://repo.sawtooth.me/ubuntu/1.0/stable xenial universe'
RUN apt update
RUN apt install -y sawtooth
RUN python3 -m pip install tornado bigchaindb_driver
RUN apt-get install -y curl
RUN python3 -m pip install pyopenssl ipfsapi==0.4.3
RUN python3 -m pip install --upgrade protobuf grpcio-tools
RUN python3 -m pip install pillow imutils
RUN apt-get update
RUN apt-get install -y cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
RUN apt-get install -y python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
RUN curl -LO http://github.com/opencv/opencv/archive/master.zip
RUN apt-get install -y unzip
RUN unzip master.zip
WORKDIR opencv-master
RUN mkdir build
WORKDIR build
RUN cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
RUN make -j4
RUN make install
RUN python3 -m pip install dlib
RUN python3 -m pip install opencv-python
WORKDIR ../../
RUN python3 -m pip install scipy==1.0.0 scikit-learn tensorflow numpy==1.16.2
RUN python3 -m pip install supervisor
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs