Sure, if you always rebuild your container images - but surely a more typical approach is to build them and put them in a container registry?
Of course, they would be rebuilt when base layers change, but if you really want exactly the same image, you reference it by a digest, which will give you a point-in-time image.