def _get_config_expand(config):
  """ Get config with both context and dockerfile_path written to it """
  if not config:
    return {}
  if 'context' in config:
    config['subdir'] = config['context']

  return config