dockerfile

package
v1.25.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOnBuildInstructions added in v1.25.0

func GetOnBuildInstructions(config *v1.Config, stageNameToIdx map[string]string) ([]instructions.Command, error)

func MakeKanikoStages added in v1.25.0

func MakeKanikoStages(opts *config.KanikoOptions, stages []instructions.Stage, metaArgs []instructions.ArgCommand) ([]config.KanikoStage, error)

func Parse

Parse parses the contents of a Dockerfile and returns a list of commands

func ParseCommands

func ParseCommands(cmdArray []string) ([]instructions.Command, error)

ParseCommands parses an array of commands into an array of instructions.Command; used for onbuild

func ParseStages added in v1.25.0

func ResolveCrossStageCommands added in v1.25.0

func ResolveCrossStageCommands(cmds []instructions.Command, stageNameToIdx map[string]string)

ResolveCrossStageCommands resolves any calls to previous stages with names to indices Ex. --from=secondStage should be --from=1 for easier processing later on As third party library lowers stage name in FROM instruction, this function resolves stage case insensitively.

Types

type BuildArgs

type BuildArgs struct {
	d.BuildArgs
}

func NewBuildArgs

func NewBuildArgs(args []string) *BuildArgs

func (*BuildArgs) AddMetaArgs added in v0.6.0

func (b *BuildArgs) AddMetaArgs(metaArgs []instructions.ArgCommand)

AddMetaArgs adds the supplied args map to b's allowedMetaArgs

func (*BuildArgs) Clone

func (b *BuildArgs) Clone() *BuildArgs

func (*BuildArgs) ReplacementEnvs

func (b *BuildArgs) ReplacementEnvs(envs []string) []string

ReplacementEnvs returns a list of filtered environment variables

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL