ARG ROS_DISTRO=humble FROM ros:$ROS_DISTRO SHELL ["/bin/bash", "-c"] RUN apt-get update && \ # apt-get install -y \ # && \ apt-get autoremove -y && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* COPY ./src/AriaCoda /usr/local/Aria RUN cd /usr/local/Aria && make -j$(nproc) ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Aria/lib RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc COPY ros_entrypoint.sh / ENTRYPOINT ["../ros_entrypoint.sh"] RUN chmod +x /ros_entrypoint.sh WORKDIR /app COPY src/ros2aria /app/src/ros2aria COPY src/ros2aria_msgs /app/src/ros2aria_msgs RUN cd /app && source /opt/ros/$ROS_DISTRO/setup.bash && colcon build