Class Dockerfile.ArgInstruction

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

public static class Dockerfile.ArgInstruction extends Dockerfile.StringCommandInstruction
Represents a ARG instruction.
  • Field Details

  • Constructor Details

    • ArgInstruction

      public ArgInstruction(String arg)
    • ArgInstruction

      public ArgInstruction(Provider<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