Skip to content

Proposal: Add --chmod flag to ADD/COPY commands (analogous to --chown) #34819

@unshare

Description

@unshare

Description
I've bumped into #34263 being merged and it hit me that --chmod would be nice in conjunction with this feature.

I frequently build Linux images from a Windows machine and I'm kind of annoyed with the 755 mode the added/copied files end up with.

ADD/COPY with --chown and --chmod together will be a readable and maintainable notation delivering precise control over permissions.

I'm aware of moby/buildkit#4242, but I don't think this issue is a duplicate (that one seems to be stale).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/builderBuildkind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shinystatus/accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions