adds structure for virtual environment uwsgi and http communication
- starts uwsgi and flask in virtual environment instead of docker - sets oauth2 https error to false (OAUTHLIB_INSECURE_TRANSPORT=1) - this setup works, but - moving it into docker - removing the venv - and allowing https connection internally? would be better
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								docker/calendarwatch/.Dockerfile.swp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docker/calendarwatch/.Dockerfile.swp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										10
									
								
								docker/calendarwatch/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								docker/calendarwatch/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
FROM python:3.8-slim-buster
 | 
			
		||||
RUN apt-get update && apt-get upgrade
 | 
			
		||||
RUN pip3 install flask Flask-SQLAlchemy flask_migrate flask_login flask_wtf python-dotenv
 | 
			
		||||
RUN apt-get install gcc libpcre3 libpcre3-dev -y
 | 
			
		||||
RUN pip3 install uwsgi
 | 
			
		||||
RUN pip3 install email-validator
 | 
			
		||||
RUN pip3 install google google-oauth google-auth-oauthlib google-api-python-client
 | 
			
		||||
COPY docker-entrypoint.sh /usr/local/bin/
 | 
			
		||||
EXPOSE 8084
 | 
			
		||||
ENTRYPOINT ["docker-entrypoint.sh"]
 | 
			
		||||
							
								
								
									
										4
									
								
								docker/calendarwatch/docker-entrypoint.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								docker/calendarwatch/docker-entrypoint.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
cd /home/calendarwatch
 | 
			
		||||
uwsgi --http-socket :8084 --wsgi-file server.py 
 | 
			
		||||
# python3 app.py
 | 
			
		||||
		Reference in New Issue
	
	Block a user