Spaces:
Sleeping
Sleeping
Commit ·
6aab150
1
Parent(s): 340660d
Fix port 5000 -> 7860, add README
Browse files- Dockerfile +2 -2
- README.md +2 -2
Dockerfile
CHANGED
|
@@ -35,10 +35,10 @@ RUN mkdir -p app/static/images && chmod 777 app/static/images
|
|
| 35 |
|
| 36 |
# Health check
|
| 37 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=5 \
|
| 38 |
-
CMD curl -f http://localhost:
|
| 39 |
|
| 40 |
# Set Python to run in unbuffered mode
|
| 41 |
ENV PYTHONUNBUFFERED=1
|
| 42 |
|
| 43 |
# Run the application with gunicorn for production
|
| 44 |
-
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 35 |
|
| 36 |
# Health check
|
| 37 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=5 \
|
| 38 |
+
CMD curl -f http://localhost:7860/health || exit 1
|
| 39 |
|
| 40 |
# Set Python to run in unbuffered mode
|
| 41 |
ENV PYTHONUNBUFFERED=1
|
| 42 |
|
| 43 |
# Run the application with gunicorn for production
|
| 44 |
+
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"]
|
README.md
CHANGED
|
@@ -7,6 +7,6 @@ sdk: docker
|
|
| 7 |
app_port: 7860
|
| 8 |
---
|
| 9 |
|
| 10 |
-
# AILIXIR Chemical RAG
|
| 11 |
|
| 12 |
-
Chemical similarity search with FAISS
|
|
|
|
| 7 |
app_port: 7860
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# AILIXIR Chemical RAG
|
| 11 |
|
| 12 |
+
Chemical similarity search with FAISS and RDKit.
|