Last active
January 28, 2019 01:32
-
-
Save sepfy/9d89b5ca79dbe3df73ab20ccdaaaa401 to your computer and use it in GitHub Desktop.
Dockerfile for OpenCV3.4
This file contains hidden or 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 arm64v8/ubuntu:xenial | |
MAINTAINER courant | |
RUN apt-get update -y | |
RUN apt-get install -y build-essential checkinstall -y cmake pkg-config yasm \ | |
libjpeg8-dev libjasper-dev libpng12-dev \ | |
libtiff5-dev \ | |
libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev \ | |
libxine2-dev libv4l-dev \ | |
libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev \ | |
qt5-default libgtk2.0-dev libtbb-dev \ | |
libatlas-base-dev \ | |
libfaac-dev libmp3lame-dev libtheora-dev \ | |
libvorbis-dev libxvidcore-dev \ | |
libopencore-amrnb-dev libopencore-amrwb-dev \ | |
x264 v4l-utils | |
RUN git clone https://github.com/opencv/opencv.git -b 3.4 | |
RUN mkdir /opencv/build \ | |
&& cd /opencv/build \ | |
&& cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. \ | |
&& make -j$(nproc) \ | |
&& make install \ | |
&& rm -rf /opencv | |
CMD ["bash"] |
This file contains hidden or 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 amd64/ubuntu:xenial | |
MAINTAINER courant | |
RUN apt-get update -y | |
RUN apt-get install -y build-essential checkinstall -y cmake pkg-config yasm \ | |
libjpeg8-dev libjasper-dev libpng12-dev \ | |
libtiff5-dev \ | |
libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev \ | |
libxine2-dev libv4l-dev \ | |
libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev \ | |
qt5-default libgtk2.0-dev libtbb-dev \ | |
libatlas-base-dev \ | |
libfaac-dev libmp3lame-dev libtheora-dev \ | |
libvorbis-dev libxvidcore-dev \ | |
libopencore-amrnb-dev libopencore-amrwb-dev \ | |
x264 v4l-utils git vim | |
RUN git clone https://github.com/opencv/opencv.git -b 3.4 | |
RUN mkdir /opencv/build \ | |
&& cd /opencv/build \ | |
&& cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. \ | |
&& make -j$(nproc) \ | |
&& make install \ | |
&& rm -rf /opencv | |
CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment