mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-30 02:10:35 +03:00
Record the image variant in each Dockerfile
This commit is contained in:
@@ -383,6 +383,7 @@ FROM deps AS frigate
|
|||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
ENV FRIGATE_IMAGE_VARIANT=standard
|
||||||
|
|
||||||
# Pre-compile bytecode so a read-only rootfs doesn't force re-parsing the
|
# Pre-compile bytecode so a read-only rootfs doesn't force re-parsing the
|
||||||
# source tree on every boot (pip-installed packages are already compiled)
|
# source tree on every boot (pip-installed packages are already compiled)
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ RUN --mount=type=bind,from=rk-wheels,source=/rk-wheels,target=/deps/rk-wheels \
|
|||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
ENV FRIGATE_IMAGE_VARIANT=rk
|
||||||
COPY docker/rockchip/COCO /COCO
|
COPY docker/rockchip/COCO /COCO
|
||||||
COPY docker/rockchip/conv2rknn.py /opt/conv2rknn.py
|
COPY docker/rockchip/conv2rknn.py /opt/conv2rknn.py
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ RUN --mount=type=bind,source=docker/rocm/prune_rocm.sh,target=/deps/prune_rocm.s
|
|||||||
|
|
||||||
WORKDIR /opt/frigate
|
WORKDIR /opt/frigate
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
ENV FRIGATE_IMAGE_VARIANT=rocm
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
FROM deps-prelim AS rocm-prelim-hsa-override0
|
FROM deps-prelim AS rocm-prelim-hsa-override0
|
||||||
|
|||||||
@@ -15,3 +15,4 @@ ENV INCLUDED_FFMPEG_VERSIONS="${DEFAULT_FFMPEG_VERSION}:${INCLUDED_FFMPEG_VERSIO
|
|||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
ENV FRIGATE_IMAGE_VARIANT=rpi
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ pip3 install --no-deps -U /deps/synap-wheels/*.whl
|
|||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
ENV FRIGATE_IMAGE_VARIANT=synaptics
|
||||||
|
|
||||||
COPY --from=synap1680-wheels /rootfs/usr/local/lib/*.so /usr/lib
|
COPY --from=synap1680-wheels /rootfs/usr/local/lib/*.so /usr/lib
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels
|
|||||||
&& pip3 install -U /deps/trt-wheels/*.whl
|
&& pip3 install -U /deps/trt-wheels/*.whl
|
||||||
|
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
ENV FRIGATE_IMAGE_VARIANT=tensorrt
|
||||||
COPY docker/tensorrt/detector/rootfs/etc/ld.so.conf.d /etc/ld.so.conf.d
|
COPY docker/tensorrt/detector/rootfs/etc/ld.so.conf.d /etc/ld.so.conf.d
|
||||||
RUN ldconfig
|
RUN ldconfig
|
||||||
|
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels
|
|||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
ENV FRIGATE_IMAGE_VARIANT=tensorrt-jp6
|
||||||
|
|
||||||
# Fixes "Error importing detector runtime: /usr/lib/aarch64-linux-gnu/libstdc++.so.6: cannot allocate memory in static TLS block"
|
# Fixes "Error importing detector runtime: /usr/lib/aarch64-linux-gnu/libstdc++.so.6: cannot allocate memory in static TLS block"
|
||||||
ENV LD_PRELOAD /usr/lib/aarch64-linux-gnu/libstdc++.so.6
|
ENV LD_PRELOAD /usr/lib/aarch64-linux-gnu/libstdc++.so.6
|
||||||
Reference in New Issue
Block a user