소스 검색

add rpi dockerfile

Blake Blackshear 4 년 전
부모
커밋
83f1e0d713
2개의 변경된 파일19개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      docker/Dockerfile.base
  2. 17 0
      docker/Dockerfile.rpi

+ 2 - 2
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)

+ 17 - 0
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)