mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ccde3a1f73
d1e9d07c
introduces a dependency to libcontainer and other daemon
related packages through builder package. The only thing test needs
is set of the Dockerfile commands. Extracting them to a separate
package.
This was causing CI tests to not to compile on non-Linux platforms.
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
37 lines
591 B
Go
37 lines
591 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 = []string{
|
|
Env,
|
|
Maintainer,
|
|
Add,
|
|
Copy,
|
|
From,
|
|
Onbuild,
|
|
Workdir,
|
|
Run,
|
|
Cmd,
|
|
Entrypoint,
|
|
Expose,
|
|
Volume,
|
|
User,
|
|
Insert,
|
|
}
|