functionalized build-docker-image