mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
update dockerfiles for amd64
This commit is contained in:
parent
dc4d24c2b9
commit
2d89044bd3
@ -1,10 +1,9 @@
|
|||||||
FROM frigate.base
|
FROM frigate-base
|
||||||
LABEL maintainer "blakeb@blakeshome.com"
|
LABEL maintainer "blakeb@blakeshome.com"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
|
||||||
# Install packages for apt repo
|
# Install packages for apt repo
|
||||||
RUN apt -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt -qq install --no-install-recommends -y \
|
&& apt-get -qq install --no-install-recommends -y \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
# VAAPI drivers for Intel hardware accel
|
# VAAPI drivers for Intel hardware accel
|
||||||
libva-drm2 libva2 i965-va-driver vainfo \
|
libva-drm2 libva2 i965-va-driver vainfo \
|
@ -1,41 +1,25 @@
|
|||||||
|
ARG ARCH=amd64
|
||||||
|
FROM blakeblackshear/frigate-wheels:${ARCH} as wheels
|
||||||
|
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:20.04
|
||||||
LABEL maintainer "blakeb@blakeshome.com"
|
LABEL maintainer "blakeb@blakeshome.com"
|
||||||
|
|
||||||
|
COPY --from=wheels /wheels/. /wheels/
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
# Install packages for apt repo
|
# Install packages for apt repo
|
||||||
RUN apt -qq update && apt -qq install --no-install-recommends -y \
|
RUN apt-get -qq update && apt-get -qq install --no-install-recommends -y \
|
||||||
software-properties-common \
|
|
||||||
# apt-transport-https ca-certificates \
|
|
||||||
build-essential \
|
|
||||||
gnupg wget unzip tzdata \
|
gnupg wget unzip tzdata \
|
||||||
# libcap-dev \
|
&& apt-get -qq install --no-install-recommends -y \
|
||||||
&& add-apt-repository ppa:deadsnakes/ppa -y \
|
|
||||||
&& apt -qq install --no-install-recommends -y \
|
|
||||||
python3.8 \
|
|
||||||
python3.8-dev \
|
|
||||||
python3-pip \
|
python3-pip \
|
||||||
&& python3.8 -m pip install -U pip \
|
&& pip3 install -U /wheels/*.whl \
|
||||||
&& python3.8 -m pip install -U wheel setuptools \
|
|
||||||
&& python3.8 -m pip install -U \
|
|
||||||
opencv-python-headless \
|
|
||||||
# python-prctl \
|
|
||||||
numpy \
|
|
||||||
imutils \
|
|
||||||
scipy \
|
|
||||||
psutil \
|
|
||||||
&& python3.8 -m pip install -U \
|
|
||||||
Flask \
|
|
||||||
paho-mqtt \
|
|
||||||
PyYAML \
|
|
||||||
matplotlib \
|
|
||||||
click \
|
|
||||||
&& echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" > /etc/apt/sources.list.d/coral-edgetpu.list \
|
&& echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" > /etc/apt/sources.list.d/coral-edgetpu.list \
|
||||||
&& wget -q -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
|
&& wget -q -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
|
||||||
&& apt -qq update \
|
&& apt -qq update \
|
||||||
&& echo "libedgetpu1-max libedgetpu/accepted-eula boolean true" | debconf-set-selections \
|
&& echo "libedgetpu1-max libedgetpu/accepted-eula boolean true" | debconf-set-selections \
|
||||||
&& apt -qq install --no-install-recommends -y \
|
&& apt -qq install --no-install-recommends -y \
|
||||||
libedgetpu1-max \
|
libedgetpu1-max \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* /wheels \
|
||||||
&& (apt-get autoremove -y; apt-get autoclean -y)
|
&& (apt-get autoremove -y; apt-get autoclean -y)
|
||||||
|
|
||||||
# get model and labels
|
# get model and labels
|
||||||
@ -43,7 +27,6 @@ RUN wget -q https://github.com/google-coral/edgetpu/raw/master/test_data/ssd_mob
|
|||||||
COPY labelmap.txt /labelmap.txt
|
COPY labelmap.txt /labelmap.txt
|
||||||
RUN wget -q https://github.com/google-coral/edgetpu/raw/master/test_data/ssd_mobilenet_v2_coco_quant_postprocess.tflite -O /cpu_model.tflite
|
RUN wget -q https://github.com/google-coral/edgetpu/raw/master/test_data/ssd_mobilenet_v2_coco_quant_postprocess.tflite -O /cpu_model.tflite
|
||||||
|
|
||||||
|
|
||||||
RUN mkdir /cache /clips
|
RUN mkdir /cache /clips
|
||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
@ -52,4 +35,4 @@ COPY detect_objects.py .
|
|||||||
COPY benchmark.py .
|
COPY benchmark.py .
|
||||||
COPY process_clip.py .
|
COPY process_clip.py .
|
||||||
|
|
||||||
CMD ["python3.8", "-u", "detect_objects.py"]
|
CMD ["python3", "-u", "detect_objects.py"]
|
||||||
|
Loading…
Reference in New Issue
Block a user