forked from vipul-sharma20/sharingan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (39 loc) · 1.53 KB
/
Dockerfile
File metadata and controls
50 lines (39 loc) · 1.53 KB
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
46
47
48
49
50
FROM python:3.6
MAINTAINER Vipul <vipul.sharma20@gmail.com>
RUN apt-get -y update
RUN apt-get -y install wget unzip \
build-essential cmake git pkg-config libatlas-base-dev \
gfortran libjasper-dev libgtk2.0-dev libavcodec-dev libavformat-dev \
libswscale-dev libjpeg-dev libpng-dev libtiff-dev libv4l-dev
RUN apt-get -y install tesseract-ocr
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
ADD requirements.txt .
RUN pip3 install -r requirements.txt
RUN pip3 install jupyter
RUN python -m nltk.downloader -d /usr/share/nltk_data all
RUN wget https://github.com/Itseez/opencv/archive/3.2.0.zip && unzip 3.2.0.zip \
&& mv opencv-3.2.0 /opencv
RUN mkdir /opencv/release
WORKDIR /opencv/release
RUN cmake -DBUILD_TIFF=ON \
-DBUILD_opencv_java=OFF \
-DWITH_CUDA=OFF \
-DENABLE_AVX=ON \
-DWITH_OPENGL=ON \
-DWITH_OPENCL=ON \
-DWITH_IPP=OFF \
-DWITH_TBB=ON \
-DWITH_EIGEN=ON \
-DWITH_V4L=ON \
-DWITH_VTK=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_PERF_TESTS=OFF \
-DCMAKE_BUILD_TYPE=RELEASE \
-DBUILD_opencv_python2=OFF \
-DCMAKE_INSTALL_PREFIX=$(python3.6 -c "import sys; print(sys.prefix)") \
-DPYTHON3_EXECUTABLE=$(which python3.6) \
-DPYTHON3_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-DPYTHON3_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") ..
RUN make -j4
RUN make install
CMD /usr/local/bin/jupyter-notebook --ip=0.0.0.0