diff --git a/docker/main/Dockerfile b/docker/main/Dockerfile index 3e9826f37c..8da5c2404a 100644 --- a/docker/main/Dockerfile +++ b/docker/main/Dockerfile @@ -383,6 +383,7 @@ FROM deps AS frigate WORKDIR /opt/frigate/ COPY --from=rootfs / / +ENV FRIGATE_IMAGE_VARIANT=standard # 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) diff --git a/docker/rockchip/Dockerfile b/docker/rockchip/Dockerfile index 70309f02ed..1fc56a46c9 100644 --- a/docker/rockchip/Dockerfile +++ b/docker/rockchip/Dockerfile @@ -25,6 +25,7 @@ RUN --mount=type=bind,from=rk-wheels,source=/rk-wheels,target=/deps/rk-wheels \ WORKDIR /opt/frigate/ COPY --from=rootfs / / +ENV FRIGATE_IMAGE_VARIANT=rk COPY docker/rockchip/COCO /COCO COPY docker/rockchip/conv2rknn.py /opt/conv2rknn.py diff --git a/docker/rocm/Dockerfile b/docker/rocm/Dockerfile index da44cf25a0..89e108ffe5 100644 --- a/docker/rocm/Dockerfile +++ b/docker/rocm/Dockerfile @@ -37,6 +37,7 @@ RUN --mount=type=bind,source=docker/rocm/prune_rocm.sh,target=/deps/prune_rocm.s WORKDIR /opt/frigate COPY --from=rootfs / / +ENV FRIGATE_IMAGE_VARIANT=rocm ####################################################################### FROM deps-prelim AS rocm-prelim-hsa-override0 diff --git a/docker/rpi/Dockerfile b/docker/rpi/Dockerfile index 35a2252276..41abb24bc8 100644 --- a/docker/rpi/Dockerfile +++ b/docker/rpi/Dockerfile @@ -15,3 +15,4 @@ ENV INCLUDED_FFMPEG_VERSIONS="${DEFAULT_FFMPEG_VERSION}:${INCLUDED_FFMPEG_VERSIO WORKDIR /opt/frigate/ COPY --from=rootfs / / +ENV FRIGATE_IMAGE_VARIANT=rpi diff --git a/docker/synaptics/Dockerfile b/docker/synaptics/Dockerfile index 6a60fe43b1..9625249691 100644 --- a/docker/synaptics/Dockerfile +++ b/docker/synaptics/Dockerfile @@ -22,6 +22,7 @@ pip3 install --no-deps -U /deps/synap-wheels/*.whl WORKDIR /opt/frigate/ COPY --from=rootfs / / +ENV FRIGATE_IMAGE_VARIANT=synaptics COPY --from=synap1680-wheels /rootfs/usr/local/lib/*.so /usr/lib diff --git a/docker/tensorrt/Dockerfile.amd64 b/docker/tensorrt/Dockerfile.amd64 index cdf5df9ff8..e0de41fb60 100644 --- a/docker/tensorrt/Dockerfile.amd64 +++ b/docker/tensorrt/Dockerfile.amd64 @@ -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 COPY --from=rootfs / / +ENV FRIGATE_IMAGE_VARIANT=tensorrt COPY docker/tensorrt/detector/rootfs/etc/ld.so.conf.d /etc/ld.so.conf.d RUN ldconfig diff --git a/docker/tensorrt/Dockerfile.arm64 b/docker/tensorrt/Dockerfile.arm64 index dd3c5de5e3..0c8091a0fa 100644 --- a/docker/tensorrt/Dockerfile.arm64 +++ b/docker/tensorrt/Dockerfile.arm64 @@ -151,6 +151,7 @@ RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels WORKDIR /opt/frigate/ 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" ENV LD_PRELOAD /usr/lib/aarch64-linux-gnu/libstdc++.so.6 \ No newline at end of file