2022-08-10 13:46:33 +00:00
|
|
|
FROM docker.io/library/python:3.9-slim AS model
|
|
|
|
|
|
|
|
RUN python3 -m pip install blobconverter
|
|
|
|
|
|
|
|
RUN mkdir -p /models
|
|
|
|
|
|
|
|
RUN blobconverter --zoo-name mobile_object_localizer_192x192 --zoo-type depthai --shaves 6 --version 2021.4 --output-dir /models || echo ""
|
|
|
|
RUN ls /models
|
|
|
|
#######
|
2022-01-23 14:29:11 +00:00
|
|
|
FROM docker.io/library/python:3.9-slim
|
2022-01-15 17:42:14 +00:00
|
|
|
|
|
|
|
# Configure piwheels repo to use pre-compiled numpy wheels for arm
|
|
|
|
RUN echo -n "[global]\nextra-index-url=https://www.piwheels.org/simple\n" >> /etc/pip.conf
|
|
|
|
|
2022-01-27 12:49:57 +00:00
|
|
|
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0
|
2022-01-15 17:42:14 +00:00
|
|
|
|
|
|
|
RUN pip3 install numpy
|
|
|
|
|
2022-08-10 13:46:33 +00:00
|
|
|
RUN mkdir /models
|
|
|
|
|
|
|
|
COPY --from=model /models/mobile_object_localizer_192x192_openvino_2021.4_6shave.blob /models/mobile_object_localizer_192x192_openvino_2021.4_6shave.blob
|
2022-01-17 22:09:25 +00:00
|
|
|
ADD requirements.txt requirements.txt
|
2022-01-15 17:42:14 +00:00
|
|
|
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
|
2022-01-17 22:09:25 +00:00
|
|
|
ADD events events
|
|
|
|
ADD camera camera
|
|
|
|
ADD setup.cfg setup.cfg
|
|
|
|
ADD setup.py setup.py
|
2022-01-15 17:42:14 +00:00
|
|
|
|
|
|
|
ENV PYTHON_EGG_CACHE=/tmp/cache
|
2022-01-17 22:09:25 +00:00
|
|
|
RUN python3 setup.py install
|
2022-01-15 17:42:14 +00:00
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
USER 1234
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/rc-oak-camera"]
|