Files
frigate/dayglo_detector/Dockerfile
T
2024-10-20 15:55:45 +11:00

19 lines
401 B
Docker

FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Install OpenCV
RUN pip install --no-cache-dir paho-mqtt opencv-python-headless numpy requests
# Copy the dayglo detector script
COPY dayglo_detector.py test_mqtt.py /app/
WORKDIR /app
CMD ["python", "/app/dayglo_detector.py"]