Last active
May 27, 2017 08:23
-
-
Save brandonsoto/9cbf3d83696a540ee0290e56b8cf6b84 to your computer and use it in GitHub Desktop.
opencv-python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
MAINTAINER Brandon Soto <brandon.soto09@gmail.com> | |
ADD https://github.com/opencv/opencv_contrib/archive/3.2.0.tar.gz /tmp/opencv_contib-3.2.0.tar.gz | |
ADD https://github.com/opencv/opencv/archive/3.2.0.tar.gz /tmp/opencv-3.2.0.tar.gz | |
RUN apt-get update \ | |
&& apt-get upgrade -y \ | |
&& apt-get install -y tar build-essential \ | |
cmake pkg-config \ | |
libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev \ | |
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \ | |
libxvidcore-dev libx264-dev \ | |
libgtk-3-dev \ | |
libatlas-base-dev gfortran \ | |
python3.5-dev python3-numpy python3-requests \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN cd /tmp \ | |
&& tar xf opencv-3.2.0.tar.gz \ | |
&& tar xf opencv_contib-3.2.0.tar.gz \ | |
&& cd opencv-3.2.0 \ | |
&& mkdir build \ | |
&& cd build \ | |
&& cmake -DPYTHON_EXECUTABLE=/usr/bin/python3.5 -DOPENCV_EXTRA_MODULES_PATH=/tmp/opencv_contrib-3.2.0/modules .. \ | |
&& make -j4 \ | |
&& make install \ | |
&& ldconfig \ | |
&& rm -rf /tmp/* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment