Dockerfile 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. FROM ubuntu:focal
  2. ENV DEBIAN_FRONTEND=noninteractive
  3. RUN apt-get update && apt-get install --no-install-recommends -y \
  4. && apt-get install --no-install-recommends -y wget nano cmake build-essential git \
  5. ca-certificates libeigen3-dev libboost-all-dev libflann-dev libvtk7-dev libomp-dev libgtest-dev \
  6. && apt-get clean \
  7. && rm -rf /var/lib/apt/lists/*
  8. WORKDIR /root
  9. RUN git clone https://github.com/PointCloudLibrary/pcl
  10. WORKDIR /root/pcl/build
  11. RUN cmake .. -DCMAKE_BUILD_TYPE=Release \
  12. -DBUILD_geometry=OFF -DBUILD_keypoints=OFF -DBUILD_ml=OFF -DBUILD_outofcore=OFF -DBUILD_people=OFF \
  13. -DBUILD_recognition=OFF -DBUILD_segmentation=OFF -DBUILD_stereo=OFF -DBUILD_surface=OFF -DBUILD_tools=OFF -DBUILD_tracking=OFF
  14. RUN make -j$(nproc) && make install
  15. COPY . /root/fast_gicp
  16. WORKDIR /root/fast_gicp
  17. RUN git submodule init && git submodule update
  18. RUN rm -rf /root/fast_gicp/build
  19. WORKDIR /root/fast_gicp/build
  20. RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON_BINDINGS=ON -DBUILD_apps=OFF -DBUILD_test=ON
  21. RUN make -j$(nproc)
  22. RUN /root/fast_gicp/build/gicp_test /root/fast_gicp/data
  23. WORKDIR /root
  24. CMD ["bash"]