Skip to content

Add --chmod flag to COPY #38083

@andresvia

Description

@andresvia

Description

Sometimes is useful set flags to files once they are copied.

Example:

GOOS=linux GOARCH=amd64 go build -o myprog
FROM scratch
COPY --chmod=775 myprog .
ENTRYPOINT ["./myprog"]
docker build .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions