I've got problem with my Dockerfile.
After building an image it is pushed to repository as cache-image, so on next builds I can pull it and use with --cache-from.
Problem is that build stops using cache after first ADD command.
Step 20/30 : WORKDIR $PROJECT_PATH
---> Using cache
---> d79e2ba28d96
Step 21/30 : ADD requirements $PROJECT_PATH/requirements
---> 6261bb0bd3e6
Removing intermediate container 26707f4107c9
I ran both images (cache and built one) and checked content of requirements directory, they're both identical. Whole build is done on Bamboo worker.
file:prefix. The problem was thechmodon the file (apparently GitLab CI checks out files as 666 no 644). – remram Jan 29 '19 at 16:18