Dockerfile 755 B

12345678910111213141516171819202122232425
  1. FROM ros:melodic
  2. RUN apt-get update && apt-get install --no-install-recommends -y \
  3. && apt-get install --no-install-recommends -y wget nano build-essential \
  4. libgtest-dev libomp-dev ros-melodic-pcl-ros \
  5. && apt-get clean \
  6. && rm -rf /var/lib/apt/lists/*
  7. RUN mkdir -p /root/catkin_ws/src
  8. WORKDIR /root/catkin_ws/src
  9. RUN /bin/bash -c '. /opt/ros/melodic/setup.bash; catkin_init_workspace'
  10. COPY . /root/catkin_ws/src/fast_gicp/
  11. WORKDIR /root/catkin_ws/src/fast_gicp
  12. RUN git submodule init && git submodule update
  13. WORKDIR /root/catkin_ws
  14. RUN /bin/bash -c '. /opt/ros/melodic/setup.bash; catkin_make'
  15. RUN sed -i "6i source \"/root/catkin_ws/devel/setup.bash\"" /ros_entrypoint.sh
  16. WORKDIR /
  17. ENTRYPOINT ["/ros_entrypoint.sh"]
  18. CMD ["bash"]