# Functions
DiscoverContainerfile tries to find a Containerfile or a Dockerfile within the provided `path`.
Mirrors path to a tmpfile if path points to a file descriptor instead of actual file on filesystem reason: operations with file descriptors are can lead to edge cases where content on FD is not in a consumable state after first consumption.