workflows docker: use current context instead of cloning the repo inside dockerfile

This commit is contained in:
matlabbe
2022-05-28 16:11:52 -04:00
parent cf64b20e1f
commit 47c94a4474
14 changed files with 36 additions and 261 deletions
+2 -3
View File
@@ -104,12 +104,11 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then git clone https://github.com/
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Clone source code
ARG CACHE_DATE=2016-01-01
# Copy current source code
COPY . /root/rtabmap
# 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 -j$(nproc) && \