FROM python:3.11-slim

WORKDIR /app

COPY pyproject.toml .
COPY fablednetmon/ fablednetmon/
RUN pip install --no-cache-dir .

COPY alembic.ini .

# Runtime directories
RUN mkdir -p /data/playbook_cache /data/plugins

ENV FABLEDNETMON_CONFIG=/config/config.yaml

EXPOSE 5000

CMD ["fablednetmon", "--host", "0.0.0.0", "--port", "5000"]
