2015-09-05 19:49:06 +00:00
|
|
|
// Package command contains the set of Dockerfile commands.
|
2018-06-02 00:30:18 +00:00
|
|
|
package command
|
2015-09-05 19:49:06 +00:00
|
|
|
|
|
|
|
// Define constants for the command strings
|
|
|
|
const (
|
2016-04-18 09:48:13 +00:00
|
|
|
Add = "add"
|
2016-05-03 20:56:59 +00:00
|
|
|
Arg = "arg"
|
|
|
|
Cmd = "cmd"
|
2016-04-18 09:48:13 +00:00
|
|
|
Copy = "copy"
|
2016-05-03 20:56:59 +00:00
|
|
|
Entrypoint = "entrypoint"
|
|
|
|
Env = "env"
|
|
|
|
Expose = "expose"
|
2016-04-18 09:48:13 +00:00
|
|
|
From = "from"
|
2016-05-03 20:56:59 +00:00
|
|
|
Healthcheck = "healthcheck"
|
|
|
|
Label = "label"
|
|
|
|
Maintainer = "maintainer"
|
2016-04-18 09:48:13 +00:00
|
|
|
Onbuild = "onbuild"
|
|
|
|
Run = "run"
|
2016-05-03 20:56:59 +00:00
|
|
|
Shell = "shell"
|
2016-04-18 09:48:13 +00:00
|
|
|
StopSignal = "stopsignal"
|
2016-05-03 20:56:59 +00:00
|
|
|
User = "user"
|
|
|
|
Volume = "volume"
|
|
|
|
Workdir = "workdir"
|
2015-09-05 19:49:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Commands is list of all Dockerfile commands
|
|
|
|
var Commands = map[string]struct{}{
|
2016-04-18 09:48:13 +00:00
|
|
|
Add: {},
|
2016-05-03 20:56:59 +00:00
|
|
|
Arg: {},
|
|
|
|
Cmd: {},
|
2016-04-18 09:48:13 +00:00
|
|
|
Copy: {},
|
2016-05-03 20:56:59 +00:00
|
|
|
Entrypoint: {},
|
|
|
|
Env: {},
|
|
|
|
Expose: {},
|
2016-04-18 09:48:13 +00:00
|
|
|
From: {},
|
2016-05-03 20:56:59 +00:00
|
|
|
Healthcheck: {},
|
|
|
|
Label: {},
|
|
|
|
Maintainer: {},
|
2016-04-18 09:48:13 +00:00
|
|
|
Onbuild: {},
|
|
|
|
Run: {},
|
2016-05-03 20:56:59 +00:00
|
|
|
Shell: {},
|
2016-04-18 09:48:13 +00:00
|
|
|
StopSignal: {},
|
2016-05-03 20:56:59 +00:00
|
|
|
User: {},
|
|
|
|
Volume: {},
|
|
|
|
Workdir: {},
|
2015-09-05 19:49:06 +00:00
|
|
|
}
|