cfc 0.1.0

A crontab replacement for container environment
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Check whether the current application is running
/// from within a container
/// 
/// # Examples
/// 
/// ```rust
/// use cfc::utils::is_docker_env;
/// if is_docker_env() {
///     println!("Running from a container");
/// }
/// ```
pub fn is_docker_env() -> bool {
    std::fs::metadata("/.dockerenv").is_ok()
}