| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | ARG ARCH=amd64ARG WHEELS_VERSIONARG FFMPEG_VERSIONFROM blakeblackshear/frigate-wheels:${WHEELS_VERSION}-${ARCH} as wheelsFROM blakeblackshear/frigate-ffmpeg:${FFMPEG_VERSION}-${ARCH} as ffmpegFROM frigate-web as webFROM ubuntu:20.04LABEL maintainer "blakeb@blakeshome.com"COPY --from=ffmpeg /usr/local /usr/local/COPY --from=wheels /wheels/. /wheels/ENV FLASK_ENV=development# ENV FONTCONFIG_PATH=/etc/fontsENV DEBIAN_FRONTEND=noninteractive# Install packages for apt repoRUN apt-get -qq update \    && apt-get upgrade -y \    && apt-get -qq install --no-install-recommends -y \    gnupg wget unzip tzdata nginx libnginx-mod-rtmp \    && apt-get -qq install --no-install-recommends -y \        python3-pip \    && pip3 install -U /wheels/*.whl \    && APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn apt-key adv --fetch-keys https://packages.cloud.google.com/apt/doc/apt-key.gpg \    && echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" > /etc/apt/sources.list.d/coral-edgetpu.list \    && echo "libedgetpu1-max libedgetpu/accepted-eula select true" | debconf-set-selections \    && apt-get -qq update && apt-get -qq install --no-install-recommends -y \        libedgetpu1-max=15.0 \    && rm -rf /var/lib/apt/lists/* /wheels \    && (apt-get autoremove -y; apt-get autoclean -y)RUN pip3 install \    peewee_migrate \    zeroconf \    voluptuous\    Flask-Sockets \    gevent \    gevent-websocketCOPY nginx/nginx.conf /etc/nginx/nginx.conf# get model and labelsCOPY labelmap.txt /labelmap.txtRUN wget -q https://github.com/google-coral/test_data/raw/master/ssdlite_mobiledet_coco_qat_postprocess_edgetpu.tflite -O /edgetpu_model.tfliteRUN wget -q https://github.com/google-coral/test_data/raw/master/ssdlite_mobiledet_coco_qat_postprocess.tflite -O /cpu_model.tfliteWORKDIR /opt/frigate/ADD frigate frigate/ADD migrations migrations/COPY --from=web /opt/frigate/build web/COPY run.sh /run.shRUN chmod +x /run.shEXPOSE 5000EXPOSE 1935CMD ["/run.sh"]
 |