From bbfbb793963a2f5b8e68aba613a5d6ee443abf4b Mon Sep 17 00:00:00 2001
From: rpiotrowski <robert.piotrowski1@pg.edu.pl>
Date: Mon, 10 Mar 2025 16:49:07 +0100
Subject: [PATCH] Using unbuffered output with python in docker

---
 serial_to_mqtt_bridge/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/serial_to_mqtt_bridge/Dockerfile b/serial_to_mqtt_bridge/Dockerfile
index 740cf85..aeac7ca 100644
--- a/serial_to_mqtt_bridge/Dockerfile
+++ b/serial_to_mqtt_bridge/Dockerfile
@@ -3,5 +3,5 @@ FROM python:3.9
 WORKDIR /src
 COPY . .
 RUN pip install -r requirements.txt
-CMD ["python3", "./serial_to_mqtt.py"] 
+CMD ["python3", "-u", "./serial_to_mqtt.py"] 
 # Or enter the name of your unique directory and parameter set.
\ No newline at end of file
-- 
GitLab