Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
+
WORKDIR /code
|
| 3 |
+
RUN chmod 777 /code
|
| 4 |
+
RUN python -m pip install --upgrade pip && \
|
| 5 |
+
pip install nest_asyncio google google-generativeai requests waitress flask[async] gradio_client flask-cors gunicorn gevent bs4 huggingface_hub
|
| 6 |
+
|
| 7 |
+
COPY . .
|
| 8 |
+
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "4", "--worker-class", "sync"]
|