Running the same script every time doesn't necessarily guarantee the same result.
Lots of docker build scripts have the equivalent of
date > file.txt
or curl https://www.random.org/integers/?num=1&min=1&max=1000&col=1&base=10&format=plain&rnd=new > file.txt
Buried deep somewhere in the code.But yeah I don't see any reason why you couldn't theoretically make a reproducible build with Docker.