- Python monitoring script for daily GSC reports - Kubernetes CronJob for automated execution - Tracks search analytics, crawl errors, and sitemap status - Includes full setup documentation
17 lines
287 B
Docker
17 lines
287 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy monitoring script
|
|
COPY monitor.py .
|
|
|
|
# Create log directory
|
|
RUN mkdir -p /var/log/gsc-monitoring
|
|
|
|
# Run monitoring
|
|
CMD ["python", "monitor.py"]
|