Skip to content

Instantly share code, notes, and snippets.

@sepfy
Last active January 28, 2019 01:32
Show Gist options
  • Save sepfy/9d89b5ca79dbe3df73ab20ccdaaaa401 to your computer and use it in GitHub Desktop.
Save sepfy/9d89b5ca79dbe3df73ab20ccdaaaa401 to your computer and use it in GitHub Desktop.
Dockerfile for OpenCV3.4
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"]
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