Fix: add PYTHONUNBUFFERED=1 so docker logs shows output immediately
This commit is contained in:
@@ -3,5 +3,6 @@ WORKDIR /app
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
COPY exporter.py .
|
COPY exporter.py .
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
EXPOSE 9101
|
EXPOSE 9101
|
||||||
CMD ["python", "exporter.py"]
|
CMD ["python", "-u", "exporter.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user