Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +2 -2
- openenv.yaml +1 -1
Dockerfile
CHANGED
|
@@ -74,8 +74,8 @@ ENV ENABLE_WEB_INTERFACE=true
|
|
| 74 |
|
| 75 |
# Health check
|
| 76 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 77 |
-
CMD curl -f http://localhost:
|
| 78 |
|
| 79 |
# Run the FastAPI server
|
| 80 |
# The module path is constructed to work with the /app/env structure
|
| 81 |
-
CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port
|
|
|
|
| 74 |
|
| 75 |
# Health check
|
| 76 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 77 |
+
CMD curl -f http://localhost:7860/health || exit 1
|
| 78 |
|
| 79 |
# Run the FastAPI server
|
| 80 |
# The module path is constructed to work with the /app/env structure
|
| 81 |
+
CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 7860"]
|
openenv.yaml
CHANGED
|
@@ -3,4 +3,4 @@ name: rag_debug_env
|
|
| 3 |
type: space
|
| 4 |
runtime: fastapi
|
| 5 |
app: server.app:app
|
| 6 |
-
port:
|
|
|
|
| 3 |
type: space
|
| 4 |
runtime: fastapi
|
| 5 |
app: server.app:app
|
| 6 |
+
port: 7860
|