sbt-native-packager icon indicating copy to clipboard operation
sbt-native-packager copied to clipboard

Deterministic files creation, modification timestamps in docker images

Open ppiotrow opened this issue 5 years ago • 0 comments

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

ppiotrow avatar Mar 23 '20 21:03 ppiotrow