| 
									
										
										
										
											2020-07-06 12:06:02 -04:00
										 |  |  | FROM ubuntu:trusty
 | 
					
						
							| 
									
										
										
										
											2020-07-16 06:42:54 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Install the prerequisites for this
 | 
					
						
							| 
									
										
										
										
											2020-07-06 12:06:02 -04:00
										 |  |  | RUN sudo apt-get -y update
 | 
					
						
							|  |  |  | RUN sudo apt-get -y upgrade
 | 
					
						
							|  |  |  | RUN sudo apt-get install -y sqlite3 libsqlite3-dev python3 python3-pip
 | 
					
						
							|  |  |  | RUN  pip3 install 'pyyaml>5.1'
 | 
					
						
							| 
									
										
										
										
											2020-07-07 08:30:14 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-16 06:42:54 -04:00
										 |  |  | # Ensure that python runs everything as UTF-8 compatible
 | 
					
						
							| 
									
										
										
										
											2020-07-16 06:41:39 -04:00
										 |  |  | ENV PYTHONIOENCODING UTF-8
 | 
					
						
							| 
									
										
										
										
											2020-07-16 06:42:54 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Copy the project into the docker image
 | 
					
						
							| 
									
										
										
										
											2020-07-07 09:34:16 -04:00
										 |  |  | COPY . /project
 | 
					
						
							| 
									
										
										
										
											2020-07-07 08:30:14 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-07 09:34:16 -04:00
										 |  |  | WORKDIR /project/bin
 | 
					
						
							| 
									
										
										
										
											2020-07-07 08:30:14 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-16 06:42:54 -04:00
										 |  |  | # Run the database creation script
 | 
					
						
							| 
									
										
										
										
											2020-07-07 08:30:14 -04:00
										 |  |  | CMD [ "python3", "gendb.py"]
 |