command.go 928 B

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