17 lines
		
	
	
		
			335 B
		
	
	
	
		
			Docker
		
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			335 B
		
	
	
	
		
			Docker
		
	
	
	
| FROM python:slim
 | |
| 
 | |
| COPY requirements.txt requirements.txt
 | |
| RUN pip install -r requirements.txt
 | |
| RUN pip install gunicorn pymysql cryptography
 | |
| 
 | |
| COPY app app
 | |
| COPY migrations migrations
 | |
| COPY microblog.py config.py boot.sh ./
 | |
| RUN chmod a+x boot.sh
 | |
| 
 | |
| ENV FLASK_APP microblog.py
 | |
| RUN flask translate compile
 | |
| 
 | |
| EXPOSE 5000
 | |
| ENTRYPOINT ["./boot.sh"]
 |