The explanation for that behavior is that at least some, and perhaps all, of those commands need different JAR files retrieved from the Maven central repository and/or Clojars, or they cannot run, because those JAR files are not already on the system where you ran those commands. They are cached in your ~/.m2 directory after you run those commands the first time, so the second time you run them it should not download them again.
If you create the Docker container in such a way that those files are already present in the container, then running those commands should not download them again.