Skip to main content

dockerfile_entrypoint

Function dockerfile_entrypoint 

Source
pub fn dockerfile_entrypoint(dockerfile: &str) -> Option<&str>
Expand description

The value of a Dockerfile’s last ENTRYPOINT, or None when it sets none.

Last rather than first for the reason dockerfile_agentd_port gives: a later instruction of the same name wins at build time, so the last one is what the container runs. The value is the raw rest of the line — this scan finds a disagreement, it does not parse Dockerfile syntax.