Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -36,7 +36,7 @@ ENV API_PORT=7860
|
|
| 36 |
|
| 37 |
# Health check
|
| 38 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
| 39 |
-
CMD python -c "import requests; requests.get('http://localhost:
|
| 40 |
|
| 41 |
# Run the FastAPI application with uvicorn
|
| 42 |
-
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 36 |
|
| 37 |
# Health check
|
| 38 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
| 39 |
+
CMD python -c "import requests; requests.get('http://localhost:7860/health', timeout=5)"
|
| 40 |
|
| 41 |
# Run the FastAPI application with uvicorn
|
| 42 |
+
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]
|