switch webserver to gunicorn
This commit is contained in:
		
							parent
							
								
									653d04e76a
								
							
						
					
					
						commit
						277bd5a283
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		
							
								
								
									
										5
									
								
								setup.sh
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								setup.sh
									
										
									
									
									
								
							| 
						 | 
					@ -108,6 +108,7 @@ matrix-client
 | 
				
			||||||
reportlab
 | 
					reportlab
 | 
				
			||||||
requests
 | 
					requests
 | 
				
			||||||
pillow
 | 
					pillow
 | 
				
			||||||
 | 
					gunicorn
 | 
				
			||||||
EOL
 | 
					EOL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 3. .env-Datei im übergeordneten Verzeichnis erstellen
 | 
					# 3. .env-Datei im übergeordneten Verzeichnis erstellen
 | 
				
			||||||
| 
						 | 
					@ -878,9 +879,7 @@ RUN groupadd -g \$GID appuser && \
 | 
				
			||||||
    chown -R appuser:appuser /app
 | 
					    chown -R appuser:appuser /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
USER appuser
 | 
					USER appuser
 | 
				
			||||||
 | 
					CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
 | 
				
			||||||
EXPOSE 5000
 | 
					 | 
				
			||||||
CMD ["python", "app.py"]
 | 
					 | 
				
			||||||
DOCKER_END
 | 
					DOCKER_END
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 6. docker-compose.yml
 | 
					# 6. docker-compose.yml
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue