Closed cerkiewny closed 3 years ago
Thanks for this fix! We generally dealt with this problem by always using --no-cache
(as mentioned in the readme), but this is definitely an improvement :)
I would also suggest just mapping directory instead of copying files and having some sort of build.sh that cmake .. makes as an entrypoint, than the docker can be executed in the cloud and keeps the code / configuration in isolation
In case of apt-get install list change, the apt-get update won't be run, which means that potentially outdated list of apt-get packages will be used in the build. This PR solves that by executing the layers as one command.