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 (
|
2016-04-18 05:48:13 -04:00
|
|
|
Add = "add"
|
2016-05-03 16:56:59 -04:00
|
|
|
Arg = "arg"
|
|
|
|
Cmd = "cmd"
|
2016-04-18 05:48:13 -04:00
|
|
|
Copy = "copy"
|
2016-05-03 16:56:59 -04:00
|
|
|
Entrypoint = "entrypoint"
|
|
|
|
Env = "env"
|
|
|
|
Expose = "expose"
|
2016-04-18 05:48:13 -04:00
|
|
|
From = "from"
|
2016-05-03 16:56:59 -04:00
|
|
|
Healthcheck = "healthcheck"
|
|
|
|
Label = "label"
|
|
|
|
Maintainer = "maintainer"
|
2016-04-18 05:48:13 -04:00
|
|
|
Onbuild = "onbuild"
|
|
|
|
Run = "run"
|
2016-05-03 16:56:59 -04:00
|
|
|
Shell = "shell"
|
2016-04-18 05:48:13 -04:00
|
|
|
StopSignal = "stopsignal"
|
2016-05-03 16:56:59 -04:00
|
|
|
User = "user"
|
|
|
|
Volume = "volume"
|
|
|
|
Workdir = "workdir"
|
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{}{
|
2016-04-18 05:48:13 -04:00
|
|
|
Add: {},
|
2016-05-03 16:56:59 -04:00
|
|
|
Arg: {},
|
|
|
|
Cmd: {},
|
2016-04-18 05:48:13 -04:00
|
|
|
Copy: {},
|
2016-05-03 16:56:59 -04:00
|
|
|
Entrypoint: {},
|
|
|
|
Env: {},
|
|
|
|
Expose: {},
|
2016-04-18 05:48:13 -04:00
|
|
|
From: {},
|
2016-05-03 16:56:59 -04:00
|
|
|
Healthcheck: {},
|
|
|
|
Label: {},
|
|
|
|
Maintainer: {},
|
2016-04-18 05:48:13 -04:00
|
|
|
Onbuild: {},
|
|
|
|
Run: {},
|
2016-05-03 16:56:59 -04:00
|
|
|
Shell: {},
|
2016-04-18 05:48:13 -04:00
|
|
|
StopSignal: {},
|
2016-05-03 16:56:59 -04:00
|
|
|
User: {},
|
|
|
|
Volume: {},
|
|
|
|
Workdir: {},
|
2015-02-12 00:18:48 -05:00
|
|
|
}
|