mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Address some runtime issues
This commit is contained in:
parent
6f25bc3b36
commit
7f057de53d
@ -155,6 +155,8 @@ RUN PIP_IGNORE_INSTALLED=0 pip3 install -r /requirements.txt
|
||||
|
||||
RUN PIP_IGNORE_INSTALLED=0 pip3 install --no-deps filterpy norfair==2.1.1
|
||||
|
||||
RUN PIP_IGNORE_INSTALLED=0 pip3 install --no-deps onvif
|
||||
|
||||
RUN PIP_IGNORE_INSTALLED=0 pip3 install --no-deps zeep==3.0.0 onvif_zeep
|
||||
|
||||
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
|
||||
@ -191,6 +193,8 @@ RUN --mount=type=bind,source=docker/main/install_deps.sh,target=/deps/install_de
|
||||
|
||||
COPY --from=wheels /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
|
||||
COPY --from=wheels /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages
|
||||
COPY --from=wheels /usr/share/matplotlib /usr/share/matplotlib
|
||||
COPY --from=wheels /etc/matplotlibrc /etc/matplotlibrc
|
||||
|
||||
RUN --mount=type=bind,from=wheels,source=/wheels,target=/deps/wheels \
|
||||
python3 -m pip install --upgrade pip && \
|
||||
|
||||
@ -14,7 +14,10 @@ apt-get -qq install --no-install-recommends -y \
|
||||
python3-pip \
|
||||
curl \
|
||||
jq \
|
||||
nethogs
|
||||
nethogs \
|
||||
libopencv-*4.5
|
||||
# libopencv-core4.5 libopencv-contrib4.5 libopencv-shape4.5 libopencv-stitching4.5
|
||||
|
||||
|
||||
# ensure python3 defaults to python3.9
|
||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
||||
|
||||
@ -19,7 +19,7 @@ class DetectionTypeEnum(str, Enum):
|
||||
|
||||
|
||||
class DetectionProxyRunner(threading.Thread):
|
||||
def __init__(self, context: zmq.Context[zmq.Socket]) -> None:
|
||||
def __init__(self, context ) -> None:
|
||||
threading.Thread.__init__(self)
|
||||
self.name = "detection_proxy"
|
||||
self.context = context
|
||||
|
||||
Loading…
Reference in New Issue
Block a user