Implemented build method

s/dockerDirectory/directory/