2016-11-30 20:47:07 +00:00
|
|
|
FROM opendronemap/opendronemap:latest
|
2016-07-05 18:06:22 +00:00
|
|
|
MAINTAINER Piero Toffanin <pt@masseranolabs.com>
|
2016-07-04 20:59:07 +00:00
|
|
|
|
2016-07-05 18:06:22 +00:00
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
USER root
|
2016-07-08 20:44:48 +00:00
|
|
|
RUN curl --silent --location https://deb.nodesource.com/setup_6.x | sudo bash -
|
2017-01-18 16:16:13 +00:00
|
|
|
RUN apt-get install -y nodejs python-gdal libboost-dev libboost-program-options-dev
|
2016-07-08 20:44:48 +00:00
|
|
|
RUN npm install -g nodemon
|
2016-07-05 18:06:22 +00:00
|
|
|
|
2017-01-18 16:16:13 +00:00
|
|
|
# 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
|
|
|
|
|
2016-07-04 20:59:07 +00:00
|
|
|
RUN mkdir /var/www
|
2016-07-05 18:06:22 +00:00
|
|
|
|
2016-07-04 20:59:07 +00:00
|
|
|
WORKDIR "/var/www"
|
2017-04-08 04:05:20 +00:00
|
|
|
#RUN git clone https://github.com/OpenDroneMap/node-OpenDroneMap .
|
|
|
|
|
|
|
|
COPY . /var/www
|
|
|
|
|
2016-07-04 20:59:07 +00:00
|
|
|
RUN npm install
|
2017-04-08 04:05:20 +00:00
|
|
|
RUN mkdir tmp
|
2016-07-04 20:59:07 +00:00
|
|
|
|
2016-11-08 19:43:10 +00:00
|
|
|
# Fix old version of gdal2tiles.py
|
2017-03-06 23:11:00 +00:00
|
|
|
# RUN (cd / && patch -p0) <patches/gdal2tiles.patch
|
2016-11-08 19:43:10 +00:00
|
|
|
|
2017-02-19 16:44:28 +00:00
|
|
|
ENTRYPOINT ["/usr/bin/nodejs", "/var/www/index.js"]
|