FROM python:3.12-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
    libpcap-dev \
    tcpdump \
    && rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir "cicflowmeter==0.5.0" pandas requests

WORKDIR /app
COPY pcap_watcher.py /app/pcap_watcher.py

CMD ["python3", "-u", "/app/pcap_watcher.py"]
