Skip to content

Instantly share code, notes, and snippets.

@CorcovadoMing
Last active February 28, 2016 08:13
Show Gist options
  • Save CorcovadoMing/ad7fde186287af261694 to your computer and use it in GitHub Desktop.
Save CorcovadoMing/ad7fde186287af261694 to your computer and use it in GitHub Desktop.
opencv
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y \
build-essential \
cmake \
git \
wget \
unzip \
pkg-config \
libswscale-dev \
python3-dev \
python3-numpy \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libjasper-dev \
libavformat-dev \
&& apt-get -y clean all \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
RUN git clone https://github.com/Itseez/opencv.git opencv\
&& cd opencv \
&& mkdir build \
&& cd build \
&& cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. \
&& make -j8 \
&& make install \
&& ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment