From 6880c40d7a526752c2bcc8bb58f7e62e6cac5b38 Mon Sep 17 00:00:00 2001 From: sebdotv Date: Thu, 10 Apr 2025 15:16:59 +0200 Subject: [PATCH] update Dockerfile: run Python unbuffered to output logs immediately --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index b7422cd..fcae0cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,5 +21,8 @@ COPY authorized_users.txt . # Start the proxy server as entrypoint ENTRYPOINT ["ollama_proxy_server"] +# Do not buffer output, e.g. logs to stdout +ENV PYTHONUNBUFFERED=1 + # Set command line parameters CMD ["--config", "./config.ini", "--users_list", "./authorized_users.txt", "--port", "8080"]