forked from mdedonno1337/docker-NFIQ2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (34 loc) · 1.59 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
################################################################################
#
# Builder environnement
#
################################################################################
FROM centos as builder
LABEL maintainer "Marco.DeDonno@unil.ch"
RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf
ADD NFIQ2.tgz /
#RUN yum update && \
# yum upgrade -y
RUN yum update
RUN yum group install -y "Development Tools" && \
yum install -y cmake
RUN cd /NFIQ2/libOpenCV && \
cmake -D CMAKE_MAKE_PROGRAM=make /NFIQ2/OpenCV/
RUN make -C /NFIQ2/libOpenCV \
opencv_core opencv_ts opencv_imgproc opencv_highgui opencv_flann \
opencv_features2d opencv_calib3d opencv_ml opencv_video opencv_objdetect \
opencv_contrib opencv_nonfree opencv_gpu opencv_photo opencv_stitching opencv_videostab
RUN make -C /NFIQ2/NFIQ2/
ENV LD_LIBRARY_PATH=/NFIQ2/biomdi/common/lib:/NFIQ2/biomdi/fingerminutia/lib:/NFIQ2/libOpenCV/lib
################################################################################
#
# Running environnement
#
################################################################################
FROM centos
COPY --from=builder /NFIQ2/NFIQ2/bin/ /NFIQ2/NFIQ2/bin/
COPY --from=builder /NFIQ2/biomdi/common/lib/ /NFIQ2/biomdi/common/lib/
COPY --from=builder /NFIQ2/biomdi/fingerminutia/lib/ /NFIQ2/biomdi/fingerminutia/lib/
COPY --from=builder /NFIQ2/libOpenCV/lib/ /NFIQ2/libOpenCV/lib/
#COPY --from=builder /NFIQ2/complianceTestSet/ /NFIQ2/complianceTestSet/
ENV LD_LIBRARY_PATH=/NFIQ2/libOpenCV/lib:/NFIQ2/biomdi/common/lib:/NFIQ2/biomdi/fingerminutia/lib