Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -20,9 +20,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 20 |
# Copy application code
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
-
EXPOSE
|
| 24 |
|
| 25 |
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
| 26 |
-
CMD curl -f http://localhost:
|
| 27 |
|
| 28 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 20 |
# Copy application code
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
+
EXPOSE 7860
|
| 24 |
|
| 25 |
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
| 26 |
+
CMD curl -f http://localhost:7860/health || exit 1
|
| 27 |
|
| 28 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|