forked from openMVG/openMVG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (37 loc) · 1.09 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
# Use Ubuntu 22.04 (will be supported until April 2027)
FROM ubuntu:jammy
# Add openMVG binaries to path
ENV PATH $PATH:/opt/openMVG_Build/install/bin
# Get dependencies
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata; \
apt-get install -y \
cmake \
build-essential \
graphviz \
git \
coinor-libclp-dev \
libceres-dev \
libflann-dev \
libjpeg-dev \
liblemon-dev \
libpng-dev \
libtiff-dev \
python3; \
apt-get autoclean && apt-get clean
# Clone the openvMVG repo
ADD . /opt/openMVG
RUN cd /opt/openMVG && git submodule update --init --recursive
# Build
RUN mkdir /opt/openMVG_Build; \
cd /opt/openMVG_Build; \
cmake -DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX="/opt/openMVG_Build/install" \
-DOpenMVG_BUILD_TESTS=ON \
-DOpenMVG_BUILD_EXAMPLES=OFF \
-DCOINUTILS_INCLUDE_DIR_HINTS=/usr/include \
-DLEMON_INCLUDE_DIR_HINTS=/usr/include/lemon \
-DCLP_INCLUDE_DIR_HINTS=/usr/include \
-DOSI_INCLUDE_DIR_HINTS=/usr/include \
../openMVG/src; \
make -j 4;
RUN cd /opt/openMVG_Build && make test && make install;