Dockerfile 854 B

1234567891011121314151617181920212223242526
  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 clang lld ros-melodic-pcl-ros \
  5. && apt-get clean \
  6. && rm -rf /var/lib/apt/lists/*
  7. RUN update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld 50
  8. RUN mkdir -p /root/catkin_ws/src
  9. WORKDIR /root/catkin_ws/src
  10. RUN /bin/bash -c '. /opt/ros/melodic/setup.bash; catkin_init_workspace'
  11. COPY . /root/catkin_ws/src/fast_gicp/
  12. WORKDIR /root/catkin_ws/src/fast_gicp
  13. RUN git submodule init && git submodule update
  14. WORKDIR /root/catkin_ws
  15. RUN /bin/bash -c '. /opt/ros/melodic/setup.bash; CC=clang CXX=clang++ catkin_make'
  16. RUN sed -i "6i source \"/root/catkin_ws/devel/setup.bash\"" /ros_entrypoint.sh
  17. WORKDIR /
  18. ENTRYPOINT ["/ros_entrypoint.sh"]
  19. CMD ["bash"]