forked from tdelabro/iris-osiris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (33 loc) · 962 Bytes
/
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
FROM ubuntu:16.04
WORKDIR /root/src/
RUN apt-get update && \
apt-get install -y \
unzip \
wget \
build-essential \
cmake \
pkg-config \
libswscale-dev \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev
RUN wget https://jaist.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.13/opencv-2.4.13.zip && \
unzip opencv-2.4.13.zip && \
cd opencv-2.4.13/ && \
mkdir build && \
cd build && \
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON .. && \
make -j$(nproc) && make install -j$(nproc) && \
cd ../.. && \
rm opencv-2.4.13.zip
RUN wget https://github.com/5455945/Iris_Osiris/archive/refs/heads/master.zip && \
unzip master.zip && \
cd Iris_Osiris-master/src/ && \
make && \
mv ../data/CASIA-iRISv2 ../data/CASIA-IrisV2 && \
cd ../.. && \
rm master.zip && \
ln -s /root/src/Iris_Osiris-master /OSIRIS
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH