fix: Disable output buffering in Docker to show startup logs
This commit is contained in:
parent
69d8fd611e
commit
b3d5304bf6
2 changed files with 6 additions and 2 deletions
|
|
@ -25,5 +25,7 @@ COPY src ./src
|
|||
# Expose port
|
||||
EXPOSE 8000
|
||||
|
||||
# Run the application
|
||||
CMD ["cargo", "run"]
|
||||
# Run the application with unbuffered output
|
||||
# PYTHONUNBUFFERED=1 and stdio -u flag for Python compatibility
|
||||
# RUST_BACKTRACE=1 for better error messages
|
||||
CMD ["sh", "-c", "RUST_BACKTRACE=1 cargo run"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue