mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
e91f3d8d9b
* initial support for rknn detector * remove purge_model_cache option * update rknn * support rk3576 * fix post_process_yolonas call * add yolonas models * update config * exclude yolonas from image * remove code
27 lines
1.1 KiB
Docker
27 lines
1.1 KiB
Docker
# syntax=docker/dockerfile:1.6
|
|
|
|
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
FROM wheels as rk-wheels
|
|
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
|
|
COPY docker/rockchip/requirements-wheels-rk.txt /requirements-wheels-rk.txt
|
|
RUN sed -i "/https:\/\//d" /requirements-wheels.txt
|
|
RUN pip3 wheel --wheel-dir=/rk-wheels -c /requirements-wheels.txt -r /requirements-wheels-rk.txt
|
|
|
|
FROM deps AS rk-frigate
|
|
ARG TARGETARCH
|
|
|
|
RUN --mount=type=bind,from=rk-wheels,source=/rk-wheels,target=/deps/rk-wheels \
|
|
pip3 install -U /deps/rk-wheels/*.whl
|
|
|
|
WORKDIR /opt/frigate/
|
|
COPY --from=rootfs / /
|
|
|
|
ADD https://github.com/MarcA711/rknn-toolkit2/releases/download/v2.0.0/librknnrt.so /usr/lib/
|
|
|
|
RUN rm -rf /usr/lib/btbn-ffmpeg/bin/ffmpeg
|
|
RUN rm -rf /usr/lib/btbn-ffmpeg/bin/ffprobe
|
|
ADD --chmod=111 https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases/download/6.1-3/ffmpeg /usr/lib/btbn-ffmpeg/bin/
|
|
ADD --chmod=111 https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases/download/6.1-3/ffprobe /usr/lib/btbn-ffmpeg/bin/
|