build: fix dependencies

This commit is contained in:
Cyrille Nofficial 2022-01-17 23:09:25 +01:00
parent 4844669191
commit 17730a4994
3 changed files with 9 additions and 8 deletions

View File

@ -3,23 +3,23 @@ FROM docker.io/library/python:3.9-slim
# Configure piwheels repo to use pre-compiled numpy wheels for arm # 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 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 RUN pip3 install numpy
ADD requirements.txt . ADD requirements.txt requirements.txt
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
ADD events . ADD events events
ADD camera . ADD camera camera
ADD setup.cfg . ADD setup.cfg setup.cfg
ADD setup.py . ADD setup.py setup.py
ENV PYTHON_EGG_CACHE=/tmp/cache ENV PYTHON_EGG_CACHE=/tmp/cache
RUN python3 setup.py install && rm -rf /src RUN python3 setup.py install
WORKDIR /tmp WORKDIR /tmp
USER 1234 USER 1234

View File

@ -16,7 +16,7 @@ Options:
""" """
import logging import logging
import os import os
import camera.depthai as cam from . import depthai as cam
from docopt import docopt from docopt import docopt
import paho.mqtt.client as mqtt import paho.mqtt.client as mqtt

View File

@ -3,4 +3,5 @@ docopt~=0.6.2
depthai==2.14.1.0 depthai==2.14.1.0
opencv-python~=4.5.5.62 opencv-python~=4.5.5.62
google~=3.0.0 google~=3.0.0
google-api-core~=2.4.0
setuptools==60.5.0 setuptools==60.5.0