mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
6ecf23861e
The most obvious use case is when one wants to make sure as fast as possible that a command is a valid Dockerfile command. Signed-off-by: kargakis <kargakis@users.noreply.github.com>
37 lines
722 B
Go
37 lines
722 B
Go
// This package contains the set of Dockerfile commands.
|
|
package command
|
|
|
|
const (
|
|
Env = "env"
|
|
Maintainer = "maintainer"
|
|
Add = "add"
|
|
Copy = "copy"
|
|
From = "from"
|
|
Onbuild = "onbuild"
|
|
Workdir = "workdir"
|
|
Run = "run"
|
|
Cmd = "cmd"
|
|
Entrypoint = "entrypoint"
|
|
Expose = "expose"
|
|
Volume = "volume"
|
|
User = "user"
|
|
Insert = "insert"
|
|
)
|
|
|
|
// Commands is list of all Dockerfile commands
|
|
var Commands = map[string]struct{}{
|
|
Env: {},
|
|
Maintainer: {},
|
|
Add: {},
|
|
Copy: {},
|
|
From: {},
|
|
Onbuild: {},
|
|
Workdir: {},
|
|
Run: {},
|
|
Cmd: {},
|
|
Entrypoint: {},
|
|
Expose: {},
|
|
Volume: {},
|
|
User: {},
|
|
Insert: {},
|
|
}
|