Skip to content

proposal: COPY add --exclude flag #4309

@kallisti5

Description

@kallisti5

Use case

It's handy to be able to exclude specific directories when doing a COPY command. For example:

COPY . .

The above command would potentially get output files from the OUTPUT ARTIFACT ... AS LOCAL ... command. If COPY got the --exclude arg (which actually exists in Docker today), you could exclude binaries and other potential sources of unwanted data.

Expected Behavior

COPY --exclude output*

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:proposalA proposal for a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions