Spanicin commited on
Commit
71f97b1
1 Parent(s): 30ccf11

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -39,4 +39,6 @@ RUN pip install --no-cache-dir -r requirements.txt
39
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
40
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "180", "app:app"]
41
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "--workers", "3", "--timeout", "300", "--worker-class", "gevent", "app:app"]
42
- CMD ["bash", "-c", "redis-server & celery -A app_celery.celery worker --loglevel=info --pool=prefork & gunicorn -b 0.0.0.0:7860 --workers 3 --timeout 300 app_celery:app"]
 
 
 
39
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
40
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "180", "app:app"]
41
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "--workers", "3", "--timeout", "300", "--worker-class", "gevent", "app:app"]
42
+ # CMD ["bash", "-c", "redis-server & celery -A app_celery.celery worker --loglevel=info --pool=gevent & gunicorn -b 0.0.0.0:7860 --workers 3 --timeout 300 app_celery:app"]
43
+ CMD ["bash", "-c", "redis-server & celery -A app_celery.celery worker --loglevel=info --pool=gevent & gunicorn -b 0.0.0.0:7860 --workers 3 --worker-class gevent --timeout 300 app_celery:app"]
44
+