diff --git a/docker/main/Dockerfile b/docker/main/Dockerfile index 8f6a42a1cc..d0cee83432 100644 --- a/docker/main/Dockerfile +++ b/docker/main/Dockerfile @@ -381,6 +381,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 653ed1e4ee..b3bc1d8d90 100644 --- a/docker/rocm/Dockerfile +++ b/docker/rocm/Dockerfile @@ -44,6 +44,7 @@ RUN echo "deb http://deb.debian.org/debian trixie main" > /etc/apt/sources.list. WORKDIR /opt/frigate COPY --from=rootfs / / +ENV FRIGATE_IMAGE_VARIANT=rocm RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \ && sed -i 's/args.append("setuptools")/args.append("setuptools==77.0.3")/' get-pip.py \ 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