Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
8bbcf59
1
Parent(s): 0d0e2dd
Claude Code: Bypass entrypoint to expose raw Python traceback
Browse filesDiagnose silent crash by running uvicorn directly instead of through
entrypoint.sh, which redirects output to /app/logs/uvicorn.log.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Dockerfile +3 -5
Dockerfile
CHANGED
|
@@ -19,8 +19,6 @@ EXPOSE 7860
|
|
| 19 |
# Set PYTHONPATH to /app
|
| 20 |
ENV PYTHONPATH=/app
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
# Run entrypoint script which then starts uvicorn
|
| 26 |
-
ENTRYPOINT ["./entrypoint.sh"]
|
|
|
|
| 19 |
# Set PYTHONPATH to /app
|
| 20 |
ENV PYTHONPATH=/app
|
| 21 |
|
| 22 |
+
# DIAGNOSTIC: Bypass entrypoint.sh to expose raw Python traceback
|
| 23 |
+
# Run uvicorn directly so errors appear in container logs
|
| 24 |
+
ENTRYPOINT ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|