docs: def build_docker_build_command(configuration):
      """
      Translate a declarative docker `configuration` to a `docker build` command.
  
      Parameters
      ----------
      configuration : dict
          configuration
  
      Returns
      -------
      args : list
          sequence of command line arguments to build an image
      """
      parts = configuration.pop('docker', 'docker').split()
      parts.append('build')
  
      build = configuration.pop('build')
  
      build['path'] = os.path.join(configuration['workspace'], build['path'])
      build['file'] = os.path.join(build['path'], build['file'])
  
      parts.extend(build_parameter_parts(
          build, 'tag', 'file', 'no-cache', 'quiet', 'cpu-shares', 'memory'))
  
      parts.extend(build_dict_parameter_parts(build, 'build-arg'))
      parts.append(build.pop('path'))
  
      return parts