From 1deae88bafcf6737eabed86f285720a5baa7f91b Mon Sep 17 00:00:00 2001 From: Serafadam Date: Tue, 21 Nov 2023 11:14:02 +0000 Subject: [PATCH] if sim --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 793fcc9..b9653c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ FROM ros:${ROS_DISTRO}-ros-core ARG CORE_NUM=10 ARG BUILD_TYPE="RelWithDebInfo" - +ARG SIM=0 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get -y install --no-install-recommends \ @@ -53,7 +53,7 @@ RUN echo "if [ -f ${WS}/install/setup.bash ]; then source ${WS}/install/setup.ba COPY ./requirements.txt .$WS/src/requirements.txt COPY ./depthai-2.22.0.0.dev0+19c262d4bc45f69cf75031933e6eda7037b5d497-cp310-cp310-linux_aarch64.whl .$WS/src/depthai-2.22.0.0.dev0+19c262d4bc45f69cf75031933e6eda7037b5d497-cp310-cp310-linux_aarch64.whl -RUN python3 -m pip install .$WS/src/depthai-2.22.0.0.dev0+19c262d4bc45f69cf75031933e6eda7037b5d497-cp310-cp310-linux_aarch64.whl +RUN if [ "$SIM" = "0" ] ; then python3 -m pip install .$WS/src/depthai-2.22.0.0.dev0+19c262d4bc45f69cf75031933e6eda7037b5d497-cp310-cp310-linux_aarch64.whl ; fi RUN echo "export LD_LIBRARY_PATH=/usr/local/lib/python3.10/dist-packages${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" >> $HOME/.bashrc RUN chmod +x /ws/src/rae/entrypoint.sh