running
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user