Comment the dockerfile better
							parent
							
								
									de7a773114
								
							
						
					
					
						commit
						bd18460d60
					
				|  | @ -1,12 +1,18 @@ | ||||||
| FROM ubuntu:trusty | FROM ubuntu:trusty | ||||||
|  | 
 | ||||||
|  | # Install the prerequisites for this | ||||||
| RUN sudo apt-get -y update | RUN sudo apt-get -y update | ||||||
| RUN sudo apt-get -y upgrade | RUN sudo apt-get -y upgrade | ||||||
| RUN sudo apt-get install -y sqlite3 libsqlite3-dev python3 python3-pip | RUN sudo apt-get install -y sqlite3 libsqlite3-dev python3 python3-pip | ||||||
| RUN  pip3 install 'pyyaml>5.1' | RUN  pip3 install 'pyyaml>5.1' | ||||||
| 
 | 
 | ||||||
|  | # Ensure that python runs everything as UTF-8 compatible | ||||||
| ENV PYTHONIOENCODING UTF-8 | ENV PYTHONIOENCODING UTF-8 | ||||||
|  | 
 | ||||||
|  | # Copy the project into the docker image | ||||||
| COPY . /project | COPY . /project | ||||||
| 
 | 
 | ||||||
| WORKDIR /project/bin | WORKDIR /project/bin | ||||||
| 
 | 
 | ||||||
|  | # Run the database creation script | ||||||
| CMD [ "python3", "gendb.py"] | CMD [ "python3", "gendb.py"] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue