import {
  require_lib
} from "./chunk-RIIQA6S6.mjs";
import {
  init_esm_shims
} from "./chunk-RDFZ4GVM.mjs";
import {
  __toESM
} from "./chunk-7KF2HEU2.mjs";

// src/detectors/docker.ts
init_esm_shims();
var import_fs_extra = __toESM(require_lib());
import path from "path";
async function detectDocker(repoPath) {
  const dockerfile = path.join(repoPath, "Dockerfile");
  const compose = path.join(repoPath, "docker-compose.yml");
  const composeYaml = path.join(repoPath, "compose.yaml");
  if (await import_fs_extra.default.pathExists(dockerfile) || await import_fs_extra.default.pathExists(compose) || await import_fs_extra.default.pathExists(composeYaml)) {
    return { name: "Docker", logo: "container/docker.svg", type: "infrastructure" };
  }
  return null;
}

export {
  detectDocker
};
