Skip to content

COPY command ignores USER, sets file ownership to root #2

@nunofgs

Description

@nunofgs

There are multiple issues submitted to the docker/docker about this.

My use case is similar to:

FROM ubuntu
RUN adduser foo
USER foo
ADD . /foo

I believe the USER instruction should affect any subsequent COPY and ADD instructions to avoid having to always chown any copied directories/files.

Any chance dockramp could support this use case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions