FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY class_monitor ./class_monitor
COPY config.example.yaml ./config.example.yaml
RUN chmod -R a+rX /app/class_monitor /app/config.example.yaml
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
CMD ["python", "-m", "class_monitor"]
