FROM python:3.11-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 WORKDIR /var/core/mlLogWatcher RUN apt-get update && \ apt-get install -y --no-install-recommends openssh-client && \ rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY alert_runbook.yaml ./alert_runbook.yaml COPY scripts ./scripts EXPOSE 8081 CMD ["uvicorn", "scripts.grafana_alert_webhook:app", "--host", "0.0.0.0", "--port", "8081"]