code: def package(
      files,
      tag,
      metadata,
      extra_options,
      branch,
      template_dir,
      plugins_dir,
      static,
      install,
      spatialite,
      version_note,
      **extra_metadata
  ):
      "Package specified SQLite files into a new datasette Docker container"
      if not shutil.which("docker"):
          click.secho(
              ' The package command requires "docker" to be installed and configured ',
              bg="red",
              fg="white",
              bold=True,
              err=True,
          )
          sys.exit(1)
      with temporary_docker_directory(
          files,
          "datasette",
          metadata,
          extra_options,
          branch,
          template_dir,
          plugins_dir,
          static,
          install,
          spatialite,
          version_note,
          extra_metadata,
      ):
          args = ["docker", "build"]
          if tag:
              args.append("-t")
              args.append(tag)
          args.append(".")
          call(argsf package(
      files,
      tag,
      metadata,
      extra_options,
      branch,
      template_dir,
      plugins_dir,
      static,
      install,
      spatialite,
      version_note,
      **extra_metadata
  ):
      "Package specified SQLite files into a new datasette Docker container"
      if not shutil.which("docker"):
          click.secho(
              ' The package command requires "docker" to be installed and configured ',
              bg="red",
              fg="white",
              bold=True,
              err=True,
          )
          sys.exit(1)
      with temporary_docker_directory(
          files,
          "datasette",
          metadata,
          extra_options,
          branch,
          template_dir,
          plugins_dir,
          static,
          install,
          spatialite,
          version_note,
          extra_metadata,
      ):
          args = ["docker", "build"]
          if tag:
              args.append("-t")
              args.append(tag)
          args.append(".")
          call(args)
docs: Package specified SQLite files into a new datasette Docker container