Class Dockerfile.CommentInstruction

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

public static class Dockerfile.CommentInstruction extends Dockerfile.StringCommandInstruction
Represents a comment instruction.
Since:
4.0.1
  • Field Details

  • Constructor Details

    • CommentInstruction

      public CommentInstruction(String command)
    • CommentInstruction

      public CommentInstruction(Provider<String> commandProvider)
  • 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