opencv-docker-base

git clone git://archive.git.mtrnord.blog/Nordgedanken/opencv-docker-base.git
Log | Files | Refs

commit 66e1449fdaba31121172cf3371e916c5e51310ab
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Sun,  2 Oct 2016 15:39:40 +0200

Create Dockerfile
Diffstat:
ADockerfile | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,59 @@ +FROM python:2.7 + +MAINTAINER MTRNord <info@nordgedanken.de> + +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +# Various Python and C/build deps +RUN apt-get update && apt-get install -y \ + wget \ + build-essential \ + cmake \ + git \ + unzip \ + pkg-config \ + python-dev \ + python-opencv \ + libopencv-dev \ + libav-tools \ + libjpeg-dev \ + libpng-dev \ + libtiff-dev \ + libjasper-dev \ + libgtk2.0-dev \ + python-numpy \ + python-pycurl \ + libatlas-base-dev \ + gfortran \ + webp \ + python-opencv \ + qt5-default \ + libvtk6-dev \ + zlib1g-dev + +# Install Open CV - Warning, this takes absolutely forever +RUN mkdir -p ~/opencv cd ~/opencv && \ + wget https://github.com/Itseez/opencv/archive/3.1.0.zip && \ + unzip 3.1.0.zip && \ + rm 3.1.0.zip && \ + mv opencv-3.1.0 OpenCV && \ + cd OpenCV && \ + mkdir build && \ + cd build && \ + cmake \ + -DWITH_QT=ON \ + -DWITH_OPENGL=ON \ + -DFORCE_VTK=ON \ + -DWITH_TBB=ON \ + -DWITH_GDAL=ON \ + -DWITH_XINE=ON \ + -DBUILD_EXAMPLES=ON .. && \ + make -j4 && \ + make install && \ + ldconfig + +COPY requirements.txt /usr/src/app/ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . /usr/src/app