dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
MIT License
176 stars 30 forks source link

Determinism for layers #34

Open rainersigwald opened 1 year ago

rainersigwald commented 1 year ago

The OCI specs say that layers should preserve timestamps, but I expect to (optionally?) violate that, because we will want to produce bit-for-bit identical output given identical repo builds, just as the Roslyn compiler does. That will require using tar APIs to set metadata on files individually to some known value.

stan-sz commented 1 year ago

Would this enforce <Deterministic>true</Deterministic>?