Hacker News new | ask | show | jobs
by mlrhazi 1579 days ago
Would that not be cached? It would not actually run that date command again, right? unless you change that date line itself, in the Dockerfile.
2 comments

If you’re using a cached version, you haven’t really reproduced anything but the cache itself. Reproducibility means creating the same output given the same input, every time, regardless of some local cache.

That said, the above example isn’t specific to Docker.

Or if you change anything that comes before that line.