gunicorn with --preload
To only load the code once (and start autotrim once)
This commit is contained in:
		@@ -5,4 +5,4 @@ RUN apk add python3 py3-lxml py3-gunicorn py3-pip git
 | 
			
		||||
ADD . /app
 | 
			
		||||
RUN pip3 install /app
 | 
			
		||||
 | 
			
		||||
CMD gunicorn --bind 0.0.0.0:8080 -w 4 morss
 | 
			
		||||
CMD gunicorn --bind 0.0.0.0:8080 -w 4 --preload morss
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user