13 lines
181 B
JavaScript
13 lines
181 B
JavaScript
|
const fs = require("fs");
|
||
|
|
||
|
function isRunningOnDocker() {
|
||
|
try {
|
||
|
return fs.existsSync("/.dockerenv");
|
||
|
} catch { }
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
|
||
|
module.exports = {
|
||
|
isRunningOnDocker
|
||
|
}
|