-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (46 loc) · 1.31 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
# First build...
FROM ubuntu:16.04 as build
MAINTAINER Speden Aave <[email protected]>
WORKDIR /tmp
ADD build.sh /tmp/build.sh
RUN /tmp/build.sh
# ..and then create a more lightweight image to actually run stuff in.
FROM ubuntu:16.04
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
curl \
exiftool \
ffmpeg \
mediainfo \
graphviz \
libpng12-0 \
libjpeg-turbo8 \
libtiff5 \
libxxf86vm1 \
libxi6 \
libxrandr2 \
libatlas-base-dev \
libqt5widgets5 \
libboost-iostreams1.58.0 \
libboost-program-options1.58.0 \
libboost-serialization1.58.0 \
libopencv-calib3d2.4v5 \
libopencv-highgui2.4v5 \
libgoogle-glog0v5 \
libfreeimage3 \
libcgal11v5 \
libglew1.13 \
libcholmod3.0.6 \
libcxsparse3.1.4 \
python-minimal \
python-opencv \
git
RUN curl -O https://storage.googleapis.com/golang/go1.11.2.linux-amd64.tar.gz
RUN tar -xvf go1.11.2.linux-amd64.tar.gz
RUN mv go /usr/local
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
COPY --from=build /opt /opt
COPY pipeline.py /opt/dpg/pipeline.py
WORKDIR /
RUN go get github.com/jonnenauha/obj-simplify
ENV PATH=/opt/openmvs/bin/OpenMVS:/opt/openmvg/bin:/opt/cmvs/bin:/opt/colmap/bin:/opt/dpg:$PATH
CMD /opt/dpg/pipeline.py --input /input/$ZIPFILE --output /output --sfm-type incremental --geomodel f --run-openmvg --run-openmvs --output-obj