Skip to content

Instantly share code, notes, and snippets.

@FlandreDaisuki
Forked from CorcovadoMing/dockerfile
Created February 19, 2016 18:22
Show Gist options
  • Save FlandreDaisuki/f5e7710b2e7521620706 to your computer and use it in GitHub Desktop.
Save FlandreDaisuki/f5e7710b2e7521620706 to your computer and use it in GitHub Desktop.
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