Class Dockerfile.ExposePortInstruction
java.lang.Object
com.bmuschko.gradle.docker.tasks.image.Dockerfile.ExposePortInstruction
- All Implemented Interfaces:
Dockerfile.Instruction
- Enclosing class:
- Dockerfile
public static class Dockerfile.ExposePortInstruction
extends Object
implements Dockerfile.Instruction
Represents a
EXPOSE
instruction.-
Field Summary
-
Constructor Summary
ConstructorDescriptionExposePortInstruction
(Integer... ports) ExposePortInstruction
(Provider<List<Integer>> provider) -
Method Summary
Modifier and TypeMethodDescriptionGets the keyword of the instruction as used in the Dockerfile.getText()
Gets the full text of the instruction as used in the Dockerfile.
-
Field Details
-
KEYWORD
- See Also:
-
-
Constructor Details
-
ExposePortInstruction
-
ExposePortInstruction
-
-
Method Details
-
getKeyword
Gets the keyword of the instruction as used in the Dockerfile.For example the keyword of the
Dockerfile.FromInstruction
isFROM
.- Specified by:
getKeyword
in interfaceDockerfile.Instruction
- Returns:
- The instruction keyword
-
getText
Gets the full text of the instruction as used in the Dockerfile.- Specified by:
getText
in interfaceDockerfile.Instruction
- Returns:
- The instruction
-