Mod function of docker build in api/dockerclient.py