17 lines
331 B
Docker
17 lines
331 B
Docker
|
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"]
|