aadnk commited on
Commit
0d8d833
1 Parent(s): f288ceb

Disable buffering in docker container

Browse files

This allows us to view the logs in real time

Files changed (1) hide show
  1. dockerfile +3 -0
dockerfile CHANGED
@@ -7,6 +7,9 @@ RUN python3 -m pip install -r /opt/whisper-webui/requirements.txt
7
  # Note: Models will be downloaded on demand to the directory /root/.cache/whisper.
8
  # You can also bind this directory in the container to somewhere on the host.
9
 
 
 
 
10
  WORKDIR /opt/whisper-webui/
11
  ENTRYPOINT ["python3"]
12
  CMD ["app-network.py"]
 
7
  # Note: Models will be downloaded on demand to the directory /root/.cache/whisper.
8
  # You can also bind this directory in the container to somewhere on the host.
9
 
10
+ # To be able to see logs in real time
11
+ ENV PYTHONUNBUFFERED=1
12
+
13
  WORKDIR /opt/whisper-webui/
14
  ENTRYPOINT ["python3"]
15
  CMD ["app-network.py"]