diff --git a/Dockerfile.gpu b/Dockerfile.gpu new file mode 100644 index 0000000..daafb5f --- /dev/null +++ b/Dockerfile.gpu @@ -0,0 +1,22 @@ +FROM opendronemap/odm:gpu +MAINTAINER Piero Toffanin + +EXPOSE 3000 + +USER root +RUN apt-get update && apt-get install -y curl gpg-agent +RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash - +RUN apt-get install -y nodejs unzip p7zip-full && npm install -g nodemon && \ + ln -s /code/SuperBuild/install/bin/untwine /usr/bin/untwine && \ + ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine && \ + ln -s /code/SuperBuild/install/bin/pdal /usr/bin/pdal + + +RUN mkdir /var/www + +WORKDIR "/var/www" +COPY . /var/www + +RUN npm install && mkdir tmp + +ENTRYPOINT ["/usr/bin/node", "/var/www/index.js"]