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
-
Method Summary
Modifier and TypeMethodDescriptiongetImage()
Returns the base image.Returns the platform.getStage()
Returns the stage.withPlatform
(String platform) Sets the platform by adding--platform
to theFROM
instruction.Sets a new build stage by addingAS
name to theFROM
instruction.
-
Constructor Details
-
From
-
-
Method Details
-
withStage
Sets a new build stage by addingAS
name to theFROM
instruction.- Parameters:
stage
- The stage- Returns:
- This instruction
-
withPlatform
Sets the platform by adding--platform
to theFROM
instruction.- 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
-