by separating the testing and docker image building scripts there was almost no redundany in the scripts, it is much clearer now