docker: added "make -j12" for rtabmap build

This commit is contained in:
matlabbe
2021-10-16 18:14:24 -04:00
parent e245782c6c
commit 56c5622d20
2 changed files with 8 additions and 8 deletions

View File

@@ -102,17 +102,17 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then git clone https://github.com/
cd && \
rm -r AliceVision; fi
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Clone source code
ARG CACHE_DATE=2016-01-01
RUN git clone https://github.com/introlab/rtabmap.git
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Build RTAB-Map project
RUN source /ros_entrypoint.sh && \
git clone https://github.com/introlab/rtabmap.git && \
cd rtabmap/build && \
~/cmake -DWITH_ALICE_VISION=ON .. && \
make -j2 && \
make -j$(nproc) && \
make install && \
cd ../.. && \
rm -rf rtabmap && \