From 088b78e687392756842fa0bd5f63d561cc2d26bb Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 18 Jan 2017 11:16:13 -0500 Subject: [PATCH] Added Potree build instructions in Dockerfile --- Dockerfile | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0abf5d4..1b0f11b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,28 @@ EXPOSE 3000 USER root RUN curl --silent --location https://deb.nodesource.com/setup_6.x | sudo bash - -RUN apt-get install -y nodejs python-gdal +RUN apt-get install -y nodejs python-gdal libboost-dev libboost-program-options-dev RUN npm install -g nodemon +# Build LASzip and PotreeConverter +WORKDIR "/staging" +RUN git clone https://github.com/pierotofy/LAStools /staging/LAStools && \ + cd LAStools/LASzip && \ + mkdir build && \ + cd build && \ + cmake -DCMAKE_BUILD_TYPE=Release .. && \ + make && \ + make install && \ + ldconfig + +RUN git clone https://github.com/pierotofy/PotreeConverter /staging/PotreeConverter +RUN cd /staging/PotreeConverter && \ + mkdir build && \ + cd build && \ + cmake -DCMAKE_BUILD_TYPE=Release -DLASZIP_INCLUDE_DIRS=/staging/LAStools/LASzip/dll -DLASZIP_LIBRARY=/staging/LAStools/LASzip/build/src/liblaszip.so .. && \ + make && \ + make install + RUN mkdir /var/www WORKDIR "/var/www"