Skip to content

Create a non-root user in the ENTRYPOINT #276

@ucan-lab

Description

@ucan-lab

#264

If you add a user in the Dockerfile, the user will be generated with the uid and gid of the host user at the time of the Docker build.
This means that it will only work in the environment where it was built with Docker.
(Automatic mapping for Docker for Mac)

If you create a non-root user in ENTRYPOINT, the user will be added when the container is created.
This allows it to run even in environments where Docker is not built, improving portability.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions