()
| 9 | const BUILD_TARGET: &str = "x86_64-pc-windows-gnu"; |
| 10 | |
| 11 | fn is_running_in_container() -> bool { |
| 12 | Path::new("/.dockerenv").exists() |
| 13 | || Path::new("/run/.containerenv").exists() |
| 14 | || env::var("CONTAINER").is_ok() |
| 15 | } |
| 16 | |
| 17 | fn find_container_runtime() -> Option<&'static str> { |
| 18 | ["podman", "docker"].into_iter().find(|cmd| { |