2023-11-02 13:55:24 +01:00
|
|
|
# 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
|
2023-11-15 12:41:55 +01:00
|
|
|
RUN sed -i "/https:\/\//d" /requirements-wheels.txt
|
2023-11-02 13:55:24 +01:00
|
|
|
RUN pip3 wheel --wheel-dir=/rk-wheels -c /requirements-wheels.txt -r /requirements-wheels-rk.txt
|
|
|
|
|
2024-02-21 00:21:24 +01:00
|
|
|
FROM deps AS rk-frigate
|
2023-11-02 13:55:24 +01:00
|
|
|
ARG TARGETARCH
|
|
|
|
|
2024-03-30 11:46:17 +01:00
|
|
|
RUN --mount=type=bind,from=rk-wheels,source=/rk-wheels,target=/deps/rk-wheels \
|
|
|
|
pip3 install -U /deps/rk-wheels/*.whl
|
2023-11-02 13:55:24 +01:00
|
|
|
|
|
|
|
WORKDIR /opt/frigate/
|
|
|
|
COPY --from=rootfs / /
|
2023-11-18 14:53:49 +01:00
|
|
|
|
2024-05-22 00:50:03 +02:00
|
|
|
ADD https://github.com/MarcA711/rknn-toolkit2/releases/download/v2.0.0/librknnrt.so /usr/lib/
|
2023-11-15 12:41:55 +01:00
|
|
|
|
|
|
|
RUN rm -rf /usr/lib/btbn-ffmpeg/bin/ffmpeg
|
|
|
|
RUN rm -rf /usr/lib/btbn-ffmpeg/bin/ffprobe
|
2024-06-14 14:25:33 +02:00
|
|
|
ADD --chmod=111 https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases/download/6.1-5/ffmpeg /usr/lib/btbn-ffmpeg/bin/
|
|
|
|
ADD --chmod=111 https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases/download/6.1-5/ffprobe /usr/lib/btbn-ffmpeg/bin/
|