Say I have some Java code which generally compiles to the exact same file between builds, but because of the way Java/Gradle/Maven works it creates a new .class files which no difference in content (ideally)
However, when Docker builds again it treats it as a different therefore creates a new layer.
I’d like to have a good way to allow reuse of those layers.
I am thinking there may be way of setting the time of the files after it is built to strip of the timestamp values when building the layer, but as far as I can tell I’d need to do it on a separate RUN
layer.