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.AddFileInstruction
orDockerfile.CopyFileInstruction
.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChown()
Returns the ownership of the copied content.String
getDest()
Returns the destination path.String
getSrc()
Return the source path.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--chown
option.
-
-
-
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--chown
option.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
-
-