Skip to content

Instantly share code, notes, and snippets.

@surfertas
Created October 15, 2019 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surfertas/e4299de2241d5ff3f19159914fee482a to your computer and use it in GitHub Desktop.
Save surfertas/e4299de2241d5ff3f19159914fee482a to your computer and use it in GitHub Desktop.
# 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