This commit is contained in:
2024-10-20 13:24:09 +11:00
parent b5255e4996
commit 2a0b402c38
2 changed files with 9 additions and 12 deletions
+6 -9
View File
@@ -1,21 +1,18 @@
FROM python:3.9-slim
# Install dependencies
# Install system dependencies
RUN apt-get update && apt-get install -y \
libopencv-dev \
python3-opencv \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Install Python packages
RUN pip install --no-cache-dir \
paho-mqtt \
requests \
numpy
# 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", "dayglo_detector.py"]
CMD ["python", "/app/dayglo_detector.py"]