Here is my Dockerfile
FROM ubuntu:18.04
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install mariadb-common mariadb-server mariadb-client nodejs npm -y
RUN git clone https://github.com/yigalirani/sqlrabbit.js.git && cd sqlrabbit.js && npm install
Note that the last line clones a git repo.
My question is: when calling docker build .
, is there a way to force docker to check the latest commit of the git repo and rebuild the layer if needed?