Class Dockerfile.LabelInstruction
java.lang.Object
com.bmuschko.gradle.docker.tasks.image.Dockerfile.MapInstruction
com.bmuschko.gradle.docker.tasks.image.Dockerfile.LabelInstruction
- All Implemented Interfaces:
Dockerfile.Instruction
- Enclosing class:
- Dockerfile
Represents a
LABEL
instruction.-
Field Summary
-
Constructor Summary
ConstructorDescriptionLabelInstruction
(Map labels) LabelInstruction
(Provider<Map<String, String>> provider) -
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.MapInstruction
getText
-
Field Details
-
KEYWORD
- See Also:
-
-
Constructor Details
-
LabelInstruction
-
LabelInstruction
-
-
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
-