command.go 969 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Package command contains the set of Dockerfile commands.
  2. package command
  3. // Define constants for the command strings
  4. const (
  5. Add = "add"
  6. Arg = "arg"
  7. Cmd = "cmd"
  8. Copy = "copy"
  9. Entrypoint = "entrypoint"
  10. Env = "env"
  11. Expose = "expose"
  12. From = "from"
  13. Healthcheck = "healthcheck"
  14. Label = "label"
  15. Maintainer = "maintainer"
  16. Onbuild = "onbuild"
  17. Run = "run"
  18. Shell = "shell"
  19. StopSignal = "stopsignal"
  20. User = "user"
  21. Volume = "volume"
  22. Workdir = "workdir"
  23. )
  24. // Commands is list of all Dockerfile commands
  25. var Commands = map[string]struct{}{
  26. Add: {},
  27. Arg: {},
  28. Cmd: {},
  29. Copy: {},
  30. Entrypoint: {},
  31. Env: {},
  32. Expose: {},
  33. From: {},
  34. Healthcheck: {},
  35. Label: {},
  36. Maintainer: {},
  37. Onbuild: {},
  38. Run: {},
  39. Shell: {},
  40. StopSignal: {},
  41. User: {},
  42. Volume: {},
  43. Workdir: {},
  44. }