github.com/olljanat/moby@v1.13.1/builder/dockerfile/command/command.go (about)

     1  // Package command contains the set of Dockerfile commands.
     2  package command
     3  
     4  // Define constants for the command strings
     5  const (
     6  	Add         = "add"
     7  	Arg         = "arg"
     8  	Cmd         = "cmd"
     9  	Copy        = "copy"
    10  	Entrypoint  = "entrypoint"
    11  	Env         = "env"
    12  	Expose      = "expose"
    13  	From        = "from"
    14  	Healthcheck = "healthcheck"
    15  	Label       = "label"
    16  	Maintainer  = "maintainer"
    17  	Onbuild     = "onbuild"
    18  	Run         = "run"
    19  	Shell       = "shell"
    20  	StopSignal  = "stopsignal"
    21  	User        = "user"
    22  	Volume      = "volume"
    23  	Workdir     = "workdir"
    24  )
    25  
    26  // Commands is list of all Dockerfile commands
    27  var Commands = map[string]struct{}{
    28  	Add:         {},
    29  	Arg:         {},
    30  	Cmd:         {},
    31  	Copy:        {},
    32  	Entrypoint:  {},
    33  	Env:         {},
    34  	Expose:      {},
    35  	From:        {},
    36  	Healthcheck: {},
    37  	Label:       {},
    38  	Maintainer:  {},
    39  	Onbuild:     {},
    40  	Run:         {},
    41  	Shell:       {},
    42  	StopSignal:  {},
    43  	User:        {},
    44  	Volume:      {},
    45  	Workdir:     {},
    46  }