| 
									
										
										
										
											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-11-07 23:53:11 +00:00
										 |  |  | # Install Node.js + other packages
 | 
					
						
							| 
									
										
										
										
											2016-12-12 20:09:09 +00:00
										 |  |  | RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:ubuntugis/ubuntugis-unstable && apt-get update
 | 
					
						
							| 
									
										
										
										
											2016-11-08 14:40:59 +00:00
										 |  |  | RUN curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
 | 
					
						
							| 
									
										
										
										
											2016-11-07 23:53:11 +00:00
										 |  |  | RUN apt-get install -y nodejs 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
 |