Added docker hooks to enable cache

This commit is contained in:
matlabbe
2019-03-14 14:18:47 -04:00
parent d995b1968b
commit b106f965f6
6 changed files with 12 additions and 0 deletions
+2
View File
@@ -10,6 +10,8 @@ RUN rm /bin/sh && ln -s /bin/bash /bin/sh
WORKDIR /root/
ARG CACHE_DATE=2016-01-01
RUN git clone https://github.com/introlab/rtabmap.git
# Build RTAB-Map project
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
docker build --build-arg CACHE_DATE="$(date)" --cache-from $IMAGE_NAME -f $DOCKERFILE_PATH -t $IMAGE_NAME -t $DOCKER_REPO:kinetic-latest .