Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a non-root user in the ENTRYPOINT #276

Open
ucan-lab opened this issue Aug 19, 2024 · 0 comments · May be fixed by #277
Open

Create a non-root user in the ENTRYPOINT #276

ucan-lab opened this issue Aug 19, 2024 · 0 comments · May be fixed by #277
Assignees

Comments

@ucan-lab
Copy link
Owner

#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.

@ucan-lab ucan-lab self-assigned this Aug 19, 2024
@ucan-lab ucan-lab linked a pull request Aug 20, 2024 that will close this issue
@ucan-lab ucan-lab changed the title Create a non-root user in the entry point Create a non-root user in the ENTRYPOINT Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@ucan-lab and others