Spaces:
Running
Running
made it production grade
Browse files- Dockerfile +1 -1
- requirements.txt +5 -4
Dockerfile
CHANGED
@@ -13,4 +13,4 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
COPY --chown=user . /app
|
16 |
-
CMD ["
|
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
COPY --chown=user . /app
|
16 |
+
CMD ["gunicorn", "-w", "10", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:7860", "--timeout", "120", "--graceful-timeout", "30", "app:app"]
|
requirements.txt
CHANGED
@@ -3,13 +3,14 @@ requests
|
|
3 |
python-dotenv
|
4 |
pymupdf
|
5 |
pinecone
|
6 |
-
sentence-transformers
|
7 |
einops
|
8 |
google-genai
|
9 |
python-docx
|
10 |
beautifulsoup4
|
11 |
pymongo
|
12 |
bcrypt
|
13 |
-
python-jose[cryptography]
|
14 |
-
passlib[bcrypt]
|
15 |
-
uvicorn
|
|
|
|
3 |
python-dotenv
|
4 |
pymupdf
|
5 |
pinecone
|
6 |
+
sentence-transformers
|
7 |
einops
|
8 |
google-genai
|
9 |
python-docx
|
10 |
beautifulsoup4
|
11 |
pymongo
|
12 |
bcrypt
|
13 |
+
python-jose[cryptography]
|
14 |
+
passlib[bcrypt]
|
15 |
+
uvicorn
|
16 |
+
gunicorn # Add this for production
|