Spaces:
Sleeping
Sleeping
Add PYTHONUNBUFFERED=1 so startup logs flush promptly
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -26,6 +26,10 @@ COPY data/ ./data/
|
|
| 26 |
|
| 27 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 28 |
ENV GRADIO_SERVER_PORT=7860
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
# rag_index/ is NOT copied at build time — it's 2.3GB (over the free-tier 1GB
|
|
|
|
| 26 |
|
| 27 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 28 |
ENV GRADIO_SERVER_PORT=7860
|
| 29 |
+
# Without this, stdout is block-buffered in a non-TTY container: print()
|
| 30 |
+
# output (our own startup/progress logs) sits unflushed while stderr-based
|
| 31 |
+
# output (tqdm progress bars) appears immediately, making logs look stuck.
|
| 32 |
+
ENV PYTHONUNBUFFERED=1
|
| 33 |
EXPOSE 7860
|
| 34 |
|
| 35 |
# rag_index/ is NOT copied at build time — it's 2.3GB (over the free-tier 1GB
|