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
Represents a comment instruction.
- Since:
- 4.0.1
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCommentInstruction
(String command) CommentInstruction
(Provider<String> commandProvider) -
Method Summary
Modifier and TypeMethodDescriptionGets the keyword of the instruction as used in the Dockerfile.Methods inherited from class com.bmuschko.gradle.docker.tasks.image.Dockerfile.StringCommandInstruction
getText
-
Field Details
-
KEYWORD
- See Also:
-
-
Constructor Details
-
CommentInstruction
-
CommentInstruction
-
-
Method Details
-
getKeyword
Gets the keyword of the instruction as used in the Dockerfile.For example the keyword of the
Dockerfile.FromInstruction
isFROM
.- Returns:
- The instruction keyword
-