Refactoring: script for building the docker images