package
4.1.0+incompatible
Repository: https://github.com/openshift/origin.git
Documentation: pkg.go.dev
# Functions
Env builds an ENV Dockerfile instruction from the mapping m.
FindAll returns the indices of all children of node such that node.Children[i].Value == cmd.
From builds a FROM Dockerfile instruction referring the base image image.
InsertInstructions inserts instructions starting from the pos-th child of node, moving other children as necessary.
Label builds a LABEL Dockerfile instruction from the mapping m.
LastBaseImage takes a Dockerfile root node and returns the base image declared in the last FROM instruction.
LastExposedPorts takes a Dockerfile root node and returns a list of ports exposed in the last image built by the Dockerfile, i.e., only the EXPOSE instructions after the last FROM instruction are considered.
NewShellLex creates a new ShellLex which uses escapeToken to escape quotes.