Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
@@ -16,7 +16,6 @@ RUN apt-get update && \
|
|
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,7 +37,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
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 |
-
|
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 |
-
|
|
|
16 |
apt-get install -y \
|
17 |
libgl1-mesa-glx \
|
18 |
ffmpeg \
|
|
|
19 |
&& apt-get clean \
|
20 |
&& rm -rf /var/lib/apt/lists/*
|
21 |
|
|
|
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"]
|
|
|
|
|
|