-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
60 lines (48 loc) · 1.67 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
############################################################
# Dockerfile to build BEWiS container images
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu
FROM ubuntu:14.04
# File Author / Maintainer
MAINTAINER Maurizio Giordano
# Update the repository sources list
RUN apt-get update
################## PYTHON INSTALLATION ######################
# Install Python and require graphic libraries for Opencv
#
ENV PYTHON_VERSION 2.7
ENV NUM_CORES 4
# Install OpenCV 3.0
RUN apt-get -y update
RUN apt-get -y install python$PYTHON_VERSION-dev wget unzip \
build-essential cmake git pkg-config libatlas-base-dev gfortran \
libjasper-dev libgtk2.0-dev libavcodec-dev libavformat-dev \
libswscale-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libv4l-dev
RUN apt-get -y install python-pip python-scipy
RUN pip install numpy
################## OPENCV INSTALLATION ######################
# Install OPENCV from github
#
WORKDIR /home
RUN git clone https://github.com/opencv/opencv.git
WORKDIR /home/opencv
RUN mkdir build
WORKDIR /home/opencv/build
RUN cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
RUN make -j7
RUN sudo make install
################## BEWiS INSTALLATION ######################
# Install BEWiS from github
#
WORKDIR /home
RUN git clone https://github.com/giordamaug/BEWiS.git
WORKDIR /home/BEWiS
RUN cmake .
RUN make
################## TEST BEWiS ######################
# Install SBI dataset
#
WORKDIR /home/BEWiS
RUN wget http://www.diegm.uniud.it/fusiello/demo/bkg/results/foliage.avi
RUN ./bewis -i foliage.avi -o output.png