2015-02-12 00:18:48 -05:00
|
|
|
// This package contains the set of Dockerfile commands.
|
|
|
|
package command
|
|
|
|
|
|
|
|
const (
|
|
|
|
Env = "env"
|
2015-02-17 10:20:06 -05:00
|
|
|
Label = "label"
|
2015-02-12 00:18:48 -05:00
|
|
|
Maintainer = "maintainer"
|
|
|
|
Add = "add"
|
|
|
|
Copy = "copy"
|
|
|
|
From = "from"
|
|
|
|
Onbuild = "onbuild"
|
|
|
|
Workdir = "workdir"
|
|
|
|
Run = "run"
|
|
|
|
Cmd = "cmd"
|
|
|
|
Entrypoint = "entrypoint"
|
|
|
|
Expose = "expose"
|
|
|
|
Volume = "volume"
|
|
|
|
User = "user"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Commands is list of all Dockerfile commands
|
2015-02-20 05:38:55 -05:00
|
|
|
var Commands = map[string]struct{}{
|
|
|
|
Env: {},
|
2015-03-17 01:23:40 -04:00
|
|
|
Label: {},
|
2015-02-20 05:38:55 -05:00
|
|
|
Maintainer: {},
|
|
|
|
Add: {},
|
|
|
|
Copy: {},
|
|
|
|
From: {},
|
|
|
|
Onbuild: {},
|
|
|
|
Workdir: {},
|
|
|
|
Run: {},
|
|
|
|
Cmd: {},
|
|
|
|
Entrypoint: {},
|
|
|
|
Expose: {},
|
|
|
|
Volume: {},
|
|
|
|
User: {},
|
2015-02-12 00:18:48 -05:00
|
|
|
}
|