Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -72,8 +72,8 @@ ENV PATH="/app/.venv/bin:$PATH"
|
|
| 72 |
ENV PYTHONPATH="/app/env:$PYTHONPATH"
|
| 73 |
|
| 74 |
# Health check
|
| 75 |
-
HEALTHCHECK --interval=30s --timeout=
|
| 76 |
-
CMD curl -f http://localhost:
|
| 77 |
|
| 78 |
# Run the FastAPI server
|
| 79 |
# The module path is constructed to work with the /app/env structure
|
|
|
|
| 72 |
ENV PYTHONPATH="/app/env:$PYTHONPATH"
|
| 73 |
|
| 74 |
# Health check
|
| 75 |
+
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
|
| 76 |
+
CMD curl -f http://localhost:7860/health || exit 1
|
| 77 |
|
| 78 |
# Run the FastAPI server
|
| 79 |
# The module path is constructed to work with the /app/env structure
|