2015-07-22 01:29:03 -04:00
|
|
|
// Package command contains the set of Dockerfile commands.
|
2015-02-12 00:18:48 -05:00
|
|
|
package command
|
|
|
|
|
2015-07-22 01:29:03 -04:00
|
|
|
// Define constants for the command strings
|
2015-02-12 00:18:48 -05:00
|
|
|
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"
|
2015-08-18 13:30:44 -04:00
|
|
|
StopSignal = "stopsignal"
|
2014-11-14 13:59:14 -05:00
|
|
|
Arg = "arg"
|
2015-02-12 00:18:48 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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-08-18 13:30:44 -04:00
|
|
|
StopSignal: {},
|
2014-11-14 13:59:14 -05:00
|
|
|
Arg: {},
|
2015-02-12 00:18:48 -05:00
|
|
|
}
|