FROM python:3.11-slim WORKDIR /app RUN apt-get update && \ apt-get install -y --no-install-recommends \ libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 \ libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 \ libxrandr2 libgbm1 libpango-1.0-0 libcairo2 \ libasound2 libxshmfence1 && \ rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt && \ playwright install chromium COPY src/ src/ # Mount state.json at runtime: -v ./state.json:/app/state.json ENTRYPOINT ["python", "-m", "src.main"] CMD ["--alerts-only"]