Class Dockerfile.From
java.lang.Object
com.bmuschko.gradle.docker.tasks.image.Dockerfile.From
- Enclosing class:
Dockerfile
Input data for a
Dockerfile.FromInstruction.- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetImage()Returns the base image.Returns the platform.getStage()Returns the stage.withPlatform(String platform) Sets the platform by adding--platformto theFROMinstruction.Sets a new build stage by addingASname to theFROMinstruction.
-
Constructor Details
-
From
-
-
Method Details
-
withStage
Sets a new build stage by addingASname to theFROMinstruction.- Parameters:
stage- The stage- Returns:
- This instruction
-
withPlatform
Sets the platform by adding--platformto theFROMinstruction.- Parameters:
platform- The platform- Returns:
- This instruction
-
getImage
Returns the base image.- Returns:
- The base image
-
getStage
Returns the stage.- Returns:
- The stage
-
getPlatform
Returns the platform.- Returns:
- The platform
-