Skip to content

Question about --chown=python:python in standalone.Dockerfile #72

@MiquellaPrime

Description

@MiquellaPrime

Hi! Thanks for the uv-docker-example repo — it’s very helpful.

I have a question about this line in the standalone.Dockerfile:

COPY --from=builder --chown=python:python /python /python

In the final stage, only the nonroot user is created, and there is no python user or group. Because of that, --chown=python:python doesn’t seem to apply — the files remain owned by root.

Is this intentional, or should the example use nonroot:nonroot here?
Or maybe the python user was meant to be created as well?

Just want to understand the intended behavior. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions