diff --git a/Dockerfile b/Dockerfile index b8e7315..7d6fef2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,23 +3,23 @@ FROM docker.io/library/python:3.9-slim # 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 -RUN apt-get update && apt-get install -y libusb-1.0-0 +RUN apt-get update && apt-get install -y libusb-1.0-0 libgl1 libglib2.0-0 RUN pip3 install numpy -ADD requirements.txt . +ADD requirements.txt requirements.txt RUN pip3 install -r requirements.txt -ADD events . -ADD camera . -ADD setup.cfg . -ADD setup.py . +ADD events events +ADD camera camera +ADD setup.cfg setup.cfg +ADD setup.py setup.py ENV PYTHON_EGG_CACHE=/tmp/cache -RUN python3 setup.py install && rm -rf /src +RUN python3 setup.py install WORKDIR /tmp USER 1234 diff --git a/camera/cli.py b/camera/cli.py index 987a32e..0c21af8 100644 --- a/camera/cli.py +++ b/camera/cli.py @@ -16,7 +16,7 @@ Options: """ import logging import os -import camera.depthai as cam +from . import depthai as cam from docopt import docopt import paho.mqtt.client as mqtt diff --git a/requirements.txt b/requirements.txt index 6440a9f..26f2b49 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ docopt~=0.6.2 depthai==2.14.1.0 opencv-python~=4.5.5.62 google~=3.0.0 +google-api-core~=2.4.0 setuptools==60.5.0 \ No newline at end of file