const fs = require("fs"); function isRunningOnDocker() { try { return fs.existsSync("/.dockerenv"); } catch { } return false; } module.exports = { isRunningOnDocker }