2016-09-11 23:52:31 +00:00
|
|
|
FROM python:2.7
|
|
|
|
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/
|
2016-10-05 14:56:10 +00:00
|
|
|
RUN pip install --upgrade git+https://github.com/pierotofy/django-knockout
|
2016-09-11 23:52:31 +00:00
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
2016-09-21 20:04:47 +00:00
|
|
|
# swagger_spec_validator is not up to date, fetch directly from github
|
2016-10-04 17:07:17 +00:00
|
|
|
# also install django-knockout
|
2016-10-05 14:56:10 +00:00
|
|
|
RUN pip install --upgrade git+https://github.com/Yelp/swagger_spec_validator
|
2016-09-21 20:04:47 +00:00
|
|
|
|
2016-09-11 23:52:31 +00:00
|
|
|
ADD . /webodm/
|
2016-09-27 14:45:09 +00:00
|
|
|
|
|
|
|
RUN git submodule init
|
|
|
|
RUN git submodule update
|
|
|
|
|
|
|
|
# Install Node.js + npm requirements for testing node-OpenDroneMap
|
2016-09-27 16:19:32 +00:00
|
|
|
RUN curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
|
2016-09-27 14:45:09 +00:00
|
|
|
RUN apt-get install -y nodejs
|
|
|
|
|
|
|
|
WORKDIR /webodm/nodeodm/external/node-OpenDroneMap
|
2016-10-05 20:14:47 +00:00
|
|
|
RUN npm install -g
|
2016-09-27 14:45:09 +00:00
|
|
|
|
|
|
|
WORKDIR /webodm
|
2016-09-27 17:25:47 +00:00
|
|
|
|
|
|
|
# Make sure all scripts are executable
|
|
|
|
RUN chmod +x *.sh
|