'Returns contents of the Dockerfile as an array, where each line in the file is an element in the array.
:return: list'

def lines_iter(self):

    byte_to_string = (lambda x: (x.strip().decode(u'utf-8') if isinstance(x, bytes) else x.strip()))
    with open(self.docker_file_path, u'r') as f:
        for line in f:
            (yield byte_to_string(line))
