mirror of
https://github.com/aserper/masto-rss.git
synced 2025-12-17 13:25:25 +00:00
Fix container logging visibility
Changes: - Add -u flag to Python in Dockerfile to disable output buffering - Add startup messages in main.py showing bot configuration - Logs now appear immediately in kubectl logs output This fixes the issue where no logs were visible when running in Kubernetes pods due to Python's default stdout buffering.
This commit is contained in:
@@ -14,5 +14,5 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy the application code
|
||||
COPY . /app
|
||||
|
||||
# Run Python script
|
||||
CMD ["python", "main.py"]
|
||||
# Run Python script with unbuffered output for container logs
|
||||
CMD ["python", "-u", "main.py"]
|
||||
|
||||
Reference in New Issue
Block a user