Update dockerfile to download the ssd_modilenet_v1 model instead of having it in the repo.

This commit is contained in:
spanner3003 2024-07-13 20:01:08 +01:00
parent 409ac41de2
commit 511b446631
2 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ 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
RUN mkdir /hailo8l_models
COPY docker/hailo8l/ssd_mobilenet_v1.hef /hailo8l_models/
RUN wget -O /hailo8l_models/ssd_mobilenet_v1.hef https://hailo-model-zoo.s3.eu-west-2.amazonaws.com/ModelZoo/Compiled/v2.11.0/hailo8l/ssd_mobilenet_v1.hef
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

Binary file not shown.