build: fix dependencies

This commit is contained in:
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
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