forked from OpenDroneMap/ODM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (39 loc) · 1.12 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
FROM ubuntu:14.04
MAINTAINER Danilo Bargen <[email protected]>
# Env variables
ENV DEBIAN_FRONTEND noninteractive
# Install git
RUN apt-get update \
&& apt-get install -y git
# Install dependencies
RUN apt-get install -y --install-recommends \
build-essential cmake g++ gcc gFortran perl git autoconf \
curl wget \
unzip \
imagemagick jhead proj-bin libproj-dev\
libjpeg-dev libboost-all-dev libgsl0-dev libx11-dev libxext-dev liblapack-dev \
libeigen3-dev libflann-dev libvtk5-dev libqhull-dev libusb-1.0-0-dev\
libjson-perl \
libzip-dev \
libswitch-perl \
libcv-dev libcvaux-dev libopencv-dev \
libgoogle-glog-dev libatlas-base-dev libsuitesparse-dev \
&& apt-get autoremove \
&& apt-get clean
# Add users
RUN useradd -m -U odm
# Prepare directories
RUN mkdir /code
WORKDIR /code
# Add repository files
ADD . /code/
# Update submodules
RUN git submodule init && git submodule update
# Build OpenDroneMap
RUN ./install.sh && \
chown -R odm:odm /code
USER odm
# Entry point
VOLUME ["/images"]
WORKDIR /images
ENTRYPOINT ["/code/run.pl"]