2016-11-07 22:25:33 +00:00
|
|
|
FROM python:3.5
|
2016-09-11 23:52:31 +00:00
|
|
|
MAINTAINER Piero Toffanin <pt@masseranolabs.com>
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
ENV PYTHONPATH $PYTHONPATH:/webodm
|
|
|
|
|
|
|
|
# Prepare directory
|
|
|
|
RUN mkdir /webodm
|
|
|
|
WORKDIR /webodm
|
|
|
|
|
|
|
|
# Install pip reqs
|
|
|
|
ADD requirements.txt /webodm/
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
ADD . /webodm/
|
2016-09-27 14:45:09 +00:00
|
|
|
|
|
|
|
RUN git submodule init
|
|
|
|
RUN git submodule update
|
|
|
|
|
2016-12-12 22:35:03 +00:00
|
|
|
# Install Node.js
|
2016-11-08 14:40:59 +00:00
|
|
|
RUN curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
|
2016-12-12 22:35:03 +00:00
|
|
|
RUN apt-get install -y nodejs
|
|
|
|
|
|
|
|
# Configure use of testing branch of Debian
|
|
|
|
RUN printf "Package: *\nPin: release a=stable\nPin-Priority: 900\n" > /etc/apt/preferences.d/stable.pref
|
|
|
|
RUN printf "Package: *\nPin: release a=testing\nPin-Priority: 750\n" > /etc/apt/preferences.d/testing.pref
|
|
|
|
RUN printf "deb http://mirror.steadfast.net/debian/ stable main contrib non-free\ndeb-src http://mirror.steadfast.net/debian/ stable main contrib non-free" > /etc/apt/sources.list.d/stable.list
|
|
|
|
RUN printf "deb http://mirror.steadfast.net/debian/ testing main contrib non-free\ndeb-src http://mirror.steadfast.net/debian/ testing main contrib non-free" > /etc/apt/sources.list.d/testing.list
|
|
|
|
|
|
|
|
# Install GDAL
|
|
|
|
RUN apt-get update && apt-get install -t testing -y binutils libproj-dev gdal-bin
|
2016-09-27 14:45:09 +00:00
|
|
|
|
|
|
|
WORKDIR /webodm/nodeodm/external/node-OpenDroneMap
|
2016-10-05 20:31:46 +00:00
|
|
|
RUN npm install
|
2016-09-27 14:45:09 +00:00
|
|
|
|
|
|
|
WORKDIR /webodm
|
2016-10-08 16:35:22 +00:00
|
|
|
RUN npm install -g webpack
|
|
|
|
RUN npm install
|