sbt-native-packager
sbt-native-packager copied to clipboard
Deterministic files creation, modification timestamps in docker images
Expected behaviour
sbt docker:publishLocal always generates files with deterministic file creation and modification timestamps.
Actual behaviour
Now build time is used as files creation&modification timestamps in the final docker image.
Why?
Seems like a good practice to force deterministic builds (JIB faq) It is very likely that this enables consistent layers caching between different docker build environments as it this thread by @sideeffffect
Links
JIB source code explaining-docker-image-ids how-to-digest-a-docker-image