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
|
|
|
|
2017-03-16 13:35:41 +00:00
|
|
|
RUN git submodule update --init
|
2016-09-27 14:45:09 +00:00
|
|
|
|
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
|
|
|
|
|
2017-05-19 20:15:26 +00:00
|
|
|
# Install GDAL, nginx
|
2017-11-17 00:19:19 +00:00
|
|
|
RUN apt-get update && apt-get install -t testing -y binutils libproj-dev gdal-bin nginx gettext-base
|
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
|
2017-06-15 21:50:16 +00:00
|
|
|
RUN npm install -g webpack && npm install && webpack
|
2017-06-15 21:37:44 +00:00
|
|
|
RUN python manage.py collectstatic --noinput
|
2017-03-08 17:16:02 +00:00
|
|
|
|
2017-07-12 13:16:52 +00:00
|
|
|
RUN rm /webodm/webodm/secret_key.py
|
|
|
|
|
2017-03-08 17:16:02 +00:00
|
|
|
VOLUME /webodm/app/media
|