mirror of
				https://github.com/tiyn/beaker-blog.git
				synced 2025-11-03 20:31:16 +01:00 
			
		
		
		
	adding dockerfile
This commit is contained in:
		@@ -4,7 +4,7 @@ This is a simple blog based on Pythons Flask framework.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Deployment
 | 
					## Deployment
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- `pip3 install requirements.txt` - install depenencies
 | 
					- `pip3 install -r requirements.txt` - install depenencies
 | 
				
			||||||
- run `python app.py`
 | 
					- run `python app.py`
 | 
				
			||||||
- blog is available on port 5000
 | 
					- blog is available on port 5000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										23
									
								
								docker/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								docker/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					FROM ubuntu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MAINTAINER Tiyn tiyn@martenkante.eu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN apt-get update
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN apt-get install python3 python3-pip -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN git clone https://github.com/tiyn/flaskblog /blog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					WORKDIR /blog/src
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN pip3 install -r requirements.txt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					VOLUME /blog/src/static/css
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					VOLUME /blog/src/templates
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					EXPOSE 5000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ENTRYPOINT [ "python3" ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD [ "app.py" ]
 | 
				
			||||||
		Reference in New Issue
	
	Block a user