Fix: add PYTHONUNBUFFERED=1 so docker logs shows output immediately

This commit is contained in:
perplexity
2026-03-27 01:28:32 +00:00
parent 1a800d0c7b
commit 45060f0e82

View File

@@ -3,5 +3,6 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY exporter.py .
ENV PYTHONUNBUFFERED=1
EXPOSE 9101
CMD ["python", "exporter.py"]
CMD ["python", "-u", "exporter.py"]