19 lines
406 B
Docker
19 lines
406 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 /app/dayglo_detector.py
|
|
|
|
WORKDIR /app
|
|
|
|
CMD ["python", "/app/dayglo_detector.py"]
|
|
|