Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Copyright (c) 2018, ARM Limited.
# SPDX-License-Identifier: Apache-2.0
FROM arm64v8/ubuntu:bionic
RUN apt-get -qq update && apt-get -qq install --no-install-recommends -y build-essential \
cmake \
git \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install OpenCV
# Download & build OpenCV
# https://github.com/lbeaucourt/Object-detection/blob/master/Dockerfile
RUN wget -q -P /usr/local/src/ --no-check-certificate https://github.com/opencv/opencv/archive/3.4.1.zip
RUN cd /usr/local/src/ \
&& unzip 3.4.1.zip \
&& rm 3.4.1.zip \
&& cd /usr/local/src/opencv-3.4.1/ \
&& mkdir build \
&& cd /usr/local/src/opencv-3.4.1/build \
&& cmake -D CMAKE_INSTALL_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local/ .. \
&& make -j4 \
&& make install \
&& rm -rf /usr/local/src/opencv-3.4.1
RUN apt-get update && apt-get install -y \
liblog4cxx-dev \
libtinyxml-dev \
libtinyxml2-dev \
libeigen3-dev \
python3-dev \
python3-numpy \
libboost-all-dev
RUN apt-get install -y symlinks && symlinks -cr /lib /etc /opt /usr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment