docker add cache when git checkout same file

前端 未结 2 827
失恋的感觉
失恋的感觉 2020-12-16 00:42

I need checkout project in my CI server build image reusing docker cache.

Docker ADD not use cache when checkout same file.

I am in git branch A

2条回答
  •  悲哀的现实
    2020-12-16 01:28

    git checkout, git clone, git fetch, an so on modify the creation date of file. Then docker see another file even is the same.

    docker ADD command fails caching when creation date of file change.

提交回复
热议问题