This commit is contained in:
		
							
								
								
									
										7
									
								
								docker-entry.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										7
									
								
								docker-entry.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -1,7 +1,12 @@
 | 
				
			|||||||
#! /bin/sh
 | 
					#! /bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -z "$1" ] || [ "$@" = "run" ]; then
 | 
					if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then
 | 
				
			||||||
 | 
						exec $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					elif [ -z "$1" ] || [ "$@" = "run" ]; then
 | 
				
			||||||
	gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss
 | 
						gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss
 | 
				
			||||||
 | 
					
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	morss $@
 | 
						morss $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user