Spaces:
Running
Running
Nikhil Pujari commited on
Commit ·
6dac1b1
1
Parent(s): 685c63b
fix: restore HEALTHCHECK NONE and remove base_path for proper HF readiness
Browse files- Re-add HEALTHCHECK NONE (removing it broke the container)
- Remove base_path: /web from README metadata - may have confused HF readiness
- Keep PYTHONUNBUFFERED=1 and EXPOSE 8000
- Root endpoint redirect to /web is already in app.py
- Dockerfile +3 -0
- README.md +0 -1
Dockerfile
CHANGED
|
@@ -74,6 +74,9 @@ ENV PYTHONPATH="/app/env:$PYTHONPATH"
|
|
| 74 |
# Ensure Python output is unbuffered so HF can detect app startup
|
| 75 |
ENV PYTHONUNBUFFERED=1
|
| 76 |
|
|
|
|
|
|
|
|
|
|
| 77 |
EXPOSE 8000
|
| 78 |
|
| 79 |
# Run the FastAPI server
|
|
|
|
| 74 |
# Ensure Python output is unbuffered so HF can detect app startup
|
| 75 |
ENV PYTHONUNBUFFERED=1
|
| 76 |
|
| 77 |
+
# Disable Docker-level health check; HF Spaces handles readiness detection
|
| 78 |
+
HEALTHCHECK NONE
|
| 79 |
+
|
| 80 |
EXPOSE 8000
|
| 81 |
|
| 82 |
# Run the FastAPI server
|
README.md
CHANGED
|
@@ -5,7 +5,6 @@ colorTo: gray
|
|
| 5 |
sdk: docker
|
| 6 |
pinned: false
|
| 7 |
app_port: 8000
|
| 8 |
-
base_path: /web
|
| 9 |
tags:
|
| 10 |
- openenv
|
| 11 |
---
|
|
|
|
| 5 |
sdk: docker
|
| 6 |
pinned: false
|
| 7 |
app_port: 8000
|
|
|
|
| 8 |
tags:
|
| 9 |
- openenv
|
| 10 |
---
|