1

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?

2
  • I think this question: How to prevent Dockerfile caching git clone has some info which (maybe) could be applied to your docker-compose case. Commented Nov 15, 2017 at 16:28
  • Also, a solution which ignores the rebuild it if needed part of your question would be the --no-cache option Commented Nov 15, 2017 at 16:35

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.