Class Dockerfile.CopyFile
- java.lang.Object
-
- com.bmuschko.gradle.docker.tasks.image.Dockerfile.File
-
- com.bmuschko.gradle.docker.tasks.image.Dockerfile.CopyFile
-
- Enclosing class:
- Dockerfile
public static class Dockerfile.CopyFile extends Dockerfile.File
Input data for aDockerfile.CopyFileInstruction
.- Since:
- 5.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStage()
Returns the previous build stage.Dockerfile.CopyFile
withStage(String stage)
Used to set the source location to a previous build stage.-
Methods inherited from class com.bmuschko.gradle.docker.tasks.image.Dockerfile.File
getChown, getDest, getSrc, withChown
-
-
-
-
Method Detail
-
withStage
public Dockerfile.CopyFile withStage(String stage)
Used to set the source location to a previous build stage.- Parameters:
stage
- The previous stage- Returns:
- This instruction
-
getStage
@Nullable public String getStage()
Returns the previous build stage.- Returns:
- The previous stage
-
-