are COPY and --reproducible fundamentally incompatible?

182 views
Skip to first unread message

Jordan Cohen

unread,
Apr 12, 2022, 2:33:22 PM4/12/22
to kaniko-users
I have noticed that when you have `COPY` directives in your Dockerfile and use ` --reproducible`, the resulting digest is always different? 

It seems because `COPY` layers are never fetched from the cache and when they are copied in, the timestamp of the files are always different because the git checkout always changes the timestamps of files (in cicd).

Is there a known workaround for this?

 
Reply all
Reply to author
Forward
0 new messages