Class Dockerfile.File
- java.lang.Object
-
- com.bmuschko.gradle.docker.tasks.image.Dockerfile.File
-
- Direct Known Subclasses:
Dockerfile.CopyFile
- Enclosing class:
- Dockerfile
public static class Dockerfile.File extends Object
Input data for aDockerfile.AddFileInstructionorDockerfile.CopyFileInstruction.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetChown()Returns the ownership of the copied content.StringgetDest()Returns the destination path.StringgetSrc()Return the source path.Dockerfile.FilewithChown(String chown)Specifies a given username, groupname, or UID/GID combination to request specific ownership of the copied content with the help of the--chownoption.
-
-
-
Method Detail
-
withChown
public Dockerfile.File withChown(String chown)
Specifies a given username, groupname, or UID/GID combination to request specific ownership of the copied content with the help of the--chownoption.Should be provided in the form of
<user>:<group>.- Parameters:
chown- The ownership of the copied content
-
getSrc
public String getSrc()
Return the source path.- Returns:
- The source path
-
getDest
public String getDest()
Returns the destination path.- Returns:
- The destination path
-
getChown
@Nullable public String getChown()
Returns the ownership of the copied content.- Returns:
- The ownership of the copied content
-
-