forked from potree/PotreeConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (27 loc) · 1.24 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
# Docker image with potreeconverter binary (https://github.com/potree/PotreeConverter)
#
# Image creation:
#
# docker build -t sverhoeven/potreeconverter .
#
# To convert input.laz (in current working directory) into a potree resource in input.laz_converted/ sub-directory use:
#
# docker run -u $UID -v $PWD:/data sverhoeven/potreeconverter PotreeConverter -l 5 --output-format LAZ /data/input.laz
#
FROM ubuntu:15.04
MAINTAINER Stefan Verhoeven <s.verhoeven@esciencecenter.nl
VOLUME ["/data"]
RUN apt-get update && apt-get install -y \
libtiff-dev libgeotiff-dev libgdal1-dev \
libboost-system-dev libboost-thread-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev libboost-iostreams-dev \
git cmake build-essential wget
WORKDIR /opt
RUN git clone https://github.com/m-schuetz/LAStools.git && cd LAStools/LASzip && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && make && make install && ldconfig
# build potree converter
RUN mkdir -p /opt/PotreeConverter
WORKDIR /opt/PotreeConverter
COPY . /opt/PotreeConverter
RUN mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DLASZIP_INCLUDE_DIRS=/opt/LAStools/LASzip/dll/ -DLASZIP_LIBRARY=/usr/local/lib/liblaszip.so .. && \
make && make install
CMD PotreeConverter