@classmethod
def update_requirements(cls, srv=None, *options):
    """
        Update an image so that it includes depencies requireed by code.

        This function implements the last step to transform the generic environment indicated by
        the dockerimg or dockerfile into the correct environment for the source code.
        """
    if srv is None or srv == '-a':
        for k in list(cls._ocean.manifest.keys()):
            for s in cls._ocean.manifest[k]:
                cls.update_requirements(s, options)
        return
    return cls._ocean._do_build_built(srv, options)
