Spaces:
Paused
Paused
Fix spaces/kant Dockerfile: clear base image ENTRYPOINT
Browse filesopenenv-base's ENTRYPOINT was hijacking startup and ignoring our CMD.
Adding ENTRYPOINT [] lets uvicorn actually run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -75,7 +75,9 @@ ENV PYTHONPATH="/app/env:$PYTHONPATH"
|
|
| 75 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 76 |
CMD curl -f http://localhost:8000/health || exit 1
|
| 77 |
|
|
|
|
|
|
|
|
|
|
| 78 |
# Run the FastAPI server
|
| 79 |
-
# The module path is constructed to work with the /app/env structure
|
| 80 |
ENV ENABLE_WEB_INTERFACE=true
|
| 81 |
-
CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
|
|
|
|
| 75 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 76 |
CMD curl -f http://localhost:8000/health || exit 1
|
| 77 |
|
| 78 |
+
# Clear base image ENTRYPOINT so our CMD runs directly
|
| 79 |
+
ENTRYPOINT []
|
| 80 |
+
|
| 81 |
# Run the FastAPI server
|
|
|
|
| 82 |
ENV ENABLE_WEB_INTERFACE=true
|
| 83 |
+
CMD ["sh", "-c", "echo '===== Application Startup at '$(date '+%Y-%m-%d %H:%M:%S')' =====' && cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
|