github.com/rentongzhang/docker@v1.8.2-rc1/builder/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  	Env        = "env"
     7  	Label      = "label"
     8  	Maintainer = "maintainer"
     9  	Add        = "add"
    10  	Copy       = "copy"
    11  	From       = "from"
    12  	Onbuild    = "onbuild"
    13  	Workdir    = "workdir"
    14  	Run        = "run"
    15  	Cmd        = "cmd"
    16  	Entrypoint = "entrypoint"
    17  	Expose     = "expose"
    18  	Volume     = "volume"
    19  	User       = "user"
    20  )
    21  
    22  // Commands is list of all Dockerfile commands
    23  var Commands = map[string]struct{}{
    24  	Env:        {},
    25  	Label:      {},
    26  	Maintainer: {},
    27  	Add:        {},
    28  	Copy:       {},
    29  	From:       {},
    30  	Onbuild:    {},
    31  	Workdir:    {},
    32  	Run:        {},
    33  	Cmd:        {},
    34  	Entrypoint: {},
    35  	Expose:     {},
    36  	Volume:     {},
    37  	User:       {},
    38  }