Spanicin commited on
Commit
c8d4064
·
verified ·
1 Parent(s): c4213c1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -16,6 +16,7 @@ RUN apt-get update && \
16
  apt-get install -y \
17
  libgl1-mesa-glx \
18
  ffmpeg \
 
19
  && apt-get clean \
20
  && rm -rf /var/lib/apt/lists/*
21
 
@@ -37,4 +38,5 @@ RUN pip install --no-cache-dir -r requirements.txt
37
 
38
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
39
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "180", "app:app"]
40
- CMD ["gunicorn", "-b", "0.0.0.0:7860", "--workers", "3", "--timeout", "300", "--worker-class", "gevent", "app:app"]
 
 
16
  apt-get install -y \
17
  libgl1-mesa-glx \
18
  ffmpeg \
19
+ redis-server \
20
  && apt-get clean \
21
  && rm -rf /var/lib/apt/lists/*
22
 
 
38
 
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"]