I have a dependency which is cloned from a remote git repo, then built and inserted into my app:
RUN git clone git@remote_repo.git .
RUN build
Naturally this repo is being developed in parallel and is updated from time to time.
Is there a way to check if it has new changes during docker-compose build
run and rebuild it if needed?