You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4 KiB

9 years ago
10 years ago
8 years ago
9 years ago
8 years ago
9 years ago
8 years ago
9 years ago
10 years ago
  1. FROM debian:jessie
  2. MAINTAINER Johannes Schickling "schickling.j@gmail.com"
  3. ARG OPENCV_VERSION="3.0.0"
  4. # install dependencies
  5. RUN apt-get update
  6. RUN apt-get install -y libopencv-dev yasm libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils pkg-config
  7. RUN apt-get install -y curl build-essential checkinstall cmake
  8. # download opencv
  9. RUN curl -sL https://github.com/Itseez/opencv/archive/$OPENCV_VERSION.tar.gz | tar xvz -C /tmp
  10. RUN mkdir -p /tmp/opencv-$OPENCV_VERSION/build
  11. WORKDIR /tmp/opencv-$OPENCV_VERSION/build
  12. # install
  13. RUN cmake -DWITH_FFMPEG=OFF -DWITH_OPENEXR=OFF -DBUILD_TIFF=OFF -DWITH_CUDA=OFF -DWITH_NVCUVID=OFF -DBUILD_PNG=OFF ..
  14. RUN make
  15. RUN make install
  16. # configure
  17. RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf
  18. RUN ldconfig
  19. RUN ln /dev/null /dev/raw1394 # hide warning - http://stackoverflow.com/questions/12689304/ctypes-error-libdc1394-error-failed-to-initialize-libdc1394
  20. # cleanup package manager
  21. RUN apt-get remove --purge -y curl build-essential checkinstall cmake
  22. RUN apt-get autoclean && apt-get clean
  23. RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  24. # prepare dir
  25. RUN mkdir /source
  26. VOLUME ["/source"]
  27. WORKDIR /source
  28. CMD ["bash"]