From 6b8051cff1d336a0366cb3b66f304351e86c8c9d Mon Sep 17 00:00:00 2001 From: spanner3003 Date: Thu, 11 Jul 2024 11:23:59 +0100 Subject: [PATCH] Update Dockerfile with new model path Add models to same path as config. --- docker/hailo8l/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/hailo8l/Dockerfile b/docker/hailo8l/Dockerfile index 9403374c83..9e4a6998d4 100644 --- a/docker/hailo8l/Dockerfile +++ b/docker/hailo8l/Dockerfile @@ -77,7 +77,8 @@ FROM deps AS h8l-frigate COPY --from=h8l-wheels /h8l-wheels /deps/h8l-wheels COPY --from=build-hailort /hailo-wheels /deps/hailo-wheels COPY --from=build-hailort /etc/environment /etc/environment -COPY docker/hailo8l/ssd_mobilenet_v1.hef /opt/frigate/ +RUN mkdir /hailo8l_models +COPY docker/hailo8l/ssd_mobilenet_v1.hef /hailo8l_models/ RUN CC=$(python3 -c "import sysconfig; import shlex; cc = sysconfig.get_config_var('CC'); cc_cmd = shlex.split(cc)[0]; print(cc_cmd[:-4] if cc_cmd.endswith('-gcc') else cc_cmd)") && \ echo "CC=$CC" >> /etc/environment