-
Notifications
You must be signed in to change notification settings - Fork 155
/
Dockerfile_PSMNet
56 lines (45 loc) · 1.26 KB
/
Dockerfile_PSMNet
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
49
50
51
52
53
54
55
56
#FROM ubuntu:latest
#FROM ubuntu:20.04
#MAINTAINER Ewelina Rupnik <[email protected]>
# CUDA refer to https://gitlab.com/nvidia/container-images/cuda/blob/master/doc/supported-tags.md
FROM nvidia/cuda:11.4.0-runtime-ubuntu20.04
ARG DEBIAN_FRONTEND=noninteractive
# Set the working directory
ENV foo /etc/opt/
WORKDIR ${foo}
#MicMac dependencies
RUN apt-get update && apt-get install -y \
build-essential \
make \
cmake \
git \
python3-pip \
proj-bin \
exiv2 \
exiftool \
imagemagick \
libboost-all-dev \
xorg \
openbox \
qt5-default \
meshlab \
vim \
wget
#MicMac clone
RUN git clone https://github.com/micmacIGN/micmac.git
ADD ./ ${foo}/micmac
#MicMac build & compile
WORKDIR micmac
RUN mkdir build
WORKDIR build
RUN cmake ../ && make install -j8
#build PSMNet
WORKDIR ${foo}
RUN cd micmac/MMVII/bin && \
make && \
cd .. && \
cd src/DenseMatch && \
/bin/bash install.sh
#MicMac add environmental variable to executables
ENV PATH=${foo}micmac/bin:${foo}micmac/MMVII/bin:${PATH}
RUN echo ${foo}micmac/bin:${foo}micmac/MMVII/bin:${PATH}