Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -3
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 |
|
@@ -35,6 +36,4 @@ RUN bash scripts/download_models.sh
|
|
35 |
# Install Python dependencies
|
36 |
RUN pip install --no-cache-dir -r requirements.txt
|
37 |
|
38 |
-
|
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", "500", "--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 |
|
|
|
36 |
# Install Python dependencies
|
37 |
RUN pip install --no-cache-dir -r requirements.txt
|
38 |
|
39 |
+
CMD ["bash", "-c", "redis-server & celery -A app_celery.celery worker --loglevel=info --pool=prefork & gunicorn -b 0.0.0.0:7860 --timeout 500 app_celery:app"]
|
|
|
|