Use requirement file for pip installs

This commit is contained in:
Sebastian Englbrecht
2022-04-12 13:32:46 +02:00
parent 58c32857d3
commit 0fd5d0451b
5 changed files with 26 additions and 21 deletions
+4 -20
View File
@@ -38,27 +38,11 @@ RUN apt-get -qq update \
RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \
&& python3 get-pip.py "pip"
RUN pip3 install scikit-build
COPY requirements.txt /requirements.txt
RUN pip3 install -r requirements.txt
# TODO: lock with requirements.txt
RUN pip3 wheel --wheel-dir=/wheels \
opencv-python-headless \
numpy \
imutils \
scipy \
psutil \
Flask \
paho-mqtt \
PyYAML \
matplotlib \
click \
setproctitle \
peewee \
peewee_migrate \
pydantic \
zeroconf \
ws4py \
requests
COPY requirements-wheels.txt /requirements-wheels.txt
RUN pip3 wheel --wheel-dir=/wheels -r requirements-wheels.txt
# Frigate Container
FROM debian:11-slim