FROM python:3.11-slim WORKDIR /app COPY collectors/common /app/collectors/common COPY collectors/opnsense_collector /app/collectors/opnsense_collector # We need to make sure the module path works. # The main.py does sys.path.append, but cleanest is to set PYTHONPATH. ENV PYTHONPATH=/app RUN pip install requests elasticsearch==8.15.1 pyyaml CMD ["python", "collectors/opnsense_collector/main.py"]