ros2_rmp/husarnet/Dockerfile

17 lines
331 B
Docker
Raw Normal View History

2023-12-24 10:59:29 +00:00
FROM osrf/ros:galactic-desktop
SHELL ["/bin/bash", "-c"]
WORKDIR /app
# build custom ROS 2 nodes
COPY ./husarnet/ros2_ws ros2_ws/
RUN cd ros2_ws && \
source /opt/ros/galactic/setup.bash && \
colcon build
COPY ./husarnet/ros_entrypoint.sh /
RUN chmod +x /ros_entrypoint.sh
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]