Class Dockerfile.File
java.lang.Object
com.bmuschko.gradle.docker.tasks.image.Dockerfile.File
- Direct Known Subclasses:
Dockerfile.CopyFile
- Enclosing class:
- Dockerfile
Input data for a
Dockerfile.AddFileInstruction
or Dockerfile.CopyFileInstruction
.- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChown()
Returns the ownership of the copied content.getDest()
Returns the destination path.getSrc()
Return the source path.Specifies a given username, groupname, or UID/GID combination to request specific ownership of the copied content with the help of the--chown
option.
-
Constructor Details
-
File
-
-
Method Details
-
withChown
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
Return the source path.- Returns:
- The source path
-
getDest
Returns the destination path.- Returns:
- The destination path
-
getChown
Returns the ownership of the copied content.- Returns:
- The ownership of the copied content
-