From 83f1e0d7133b69b2d8e210c5e5742bfb6b39ba93 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Mon, 28 Sep 2020 12:29:31 -0500 Subject: [PATCH] add rpi dockerfile --- docker/Dockerfile.base | 4 ++-- docker/Dockerfile.rpi | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 docker/Dockerfile.rpi diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base index 637b05446..ab4b081f4 100644 --- a/docker/Dockerfile.base +++ b/docker/Dockerfile.base @@ -15,9 +15,9 @@ RUN apt-get -qq update && apt-get -qq install --no-install-recommends -y \ && pip3 install -U /wheels/*.whl \ && 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 - \ - && apt -qq update \ + && apt-get -qq update \ && echo "libedgetpu1-max libedgetpu/accepted-eula boolean true" | debconf-set-selections \ - && apt -qq install --no-install-recommends -y \ + && apt-get -qq install --no-install-recommends -y \ libedgetpu1-max \ && rm -rf /var/lib/apt/lists/* /wheels \ && (apt-get autoremove -y; apt-get autoclean -y) diff --git a/docker/Dockerfile.rpi b/docker/Dockerfile.rpi new file mode 100644 index 000000000..cd3dddf61 --- /dev/null +++ b/docker/Dockerfile.rpi @@ -0,0 +1,17 @@ +FROM frigate-base +LABEL maintainer "blakeb@blakeshome.com" + +ENV DEBIAN_FRONTEND=noninteractive +# Install packages for apt repo +RUN apt-get -qq update \ + && apt-get -qq install --no-install-recommends -y \ + ffmpeg \ + # runtime dependencies + libopenexr24 \ + libgstreamer1.0-0 \ + libgstreamer-plugins-base1.0-0 \ + libopenblas-base \ + ## Tensorflow lite + && pip3 install https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp38-cp38-linux_armv7l.whl \ + && rm -rf /var/lib/apt/lists/* \ + && (apt-get autoremove -y; apt-get autoclean -y) \ No newline at end of file