Documentation
¶
Overview ¶
Package dockerfile has utilities that complement Docker's official Dockerfile parser.
Index ¶
- func Env(m []KeyValue) (string, error)
- func FindAll(node *parser.Node, cmd string) []int
- func From(image string) (string, error)
- func InsertInstructions(node *parser.Node, pos int, instructions string) error
- func Label(m []KeyValue) (string, error)
- func LastBaseImage(node *parser.Node) string
- func LastExposedPorts(node *parser.Node) []string
- func ParseTreeToDockerfile(node *parser.Node) []byte
- type KeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Env ¶
Env builds an ENV Dockerfile instruction from the mapping m. Keys and values are serialized as JSON strings to ensure compatibility with the Dockerfile parser.