Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. FROM nvidia/cuda:11.6.2-devel-ubuntu20.04
  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_VGICP_CUDA=ON -DBUILD_PYTHON_BINDINGS=ON -DBUILD_apps=OFF -DBUILD_test=ON
  21. RUN make -j$(nproc)
  22. WORKDIR /root
  23. CMD ["bash"]