Class Dockerfile.DefaultCommandInstruction

java.lang.Object
com.bmuschko.gradle.docker.tasks.image.Dockerfile.StringArrayInstruction
com.bmuschko.gradle.docker.tasks.image.Dockerfile.DefaultCommandInstruction
All Implemented Interfaces:
Dockerfile.Instruction
Enclosing class:
Dockerfile

public static class Dockerfile.DefaultCommandInstruction extends Dockerfile.StringArrayInstruction
Represents a CMD instruction.
  • Field Details

  • Constructor Details

    • DefaultCommandInstruction

      public DefaultCommandInstruction(String... command)
    • DefaultCommandInstruction

      public DefaultCommandInstruction(Provider<List<String>> provider)
  • Method Details

    • getKeyword

      public String getKeyword()
      Gets the keyword of the instruction as used in the Dockerfile.

      For example the keyword of the Dockerfile.FromInstruction is FROM.

      Returns:
      The instruction keyword