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
Since:
4.0.0
  • Constructor Details

  • Method Details

    • 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