Commit
·
e7bbf32
1
Parent(s):
0162f5e
update dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -17,11 +17,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
# Expose port
|
| 20 |
-
EXPOSE
|
| 21 |
|
| 22 |
# Health check
|
| 23 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 24 |
-
CMD python -c "import requests; requests.get('http://localhost:
|
| 25 |
|
| 26 |
# Run the application
|
| 27 |
-
CMD ["uvicorn", "DataService.api:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
# Expose port
|
| 20 |
+
EXPOSE 7860
|
| 21 |
|
| 22 |
# Health check
|
| 23 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 24 |
+
CMD python -c "import requests; requests.get('http://localhost:7860/health')"
|
| 25 |
|
| 26 |
# Run the application
|
| 27 |
+
CMD ["uvicorn", "DataService.api:app", "--host", "0.0.0.0", "--port", "7860"]
|