-
Notifications
You must be signed in to change notification settings - Fork 99
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
Run as user deno
by default
#166
Comments
Hm... this is interesting. But I think it would break some simpler flows such as running It would require to pass I don't recall if there is a docker advice regarding this for the official images, but for example My suggestion is to keep the root user as the default. Maybe it's worthwhile to add |
I don't mind this being a breaking change for the few users that will have behaviors that depend on being run as root, they can update their Dockerfiles to include |
This is going to break many people's docker files, in what I think could be a subtle way (potentially confusing for people). It's pretty normal to run scripts / install things that require root in a docker file. It would seem strange to do this if other official base images do not. IIRC this was the case in the past but was undone as too much of a pain point. Should you decide to do this please add a big warning/explanation about it in the README... |
My concern is not about those building images based on deno, but those running |
I guess it's also true that "pain point" might have been a couple of users complained 🤷 😆 |
@hayd oh you mean when people are building off of that |
@wperron yep, that was the complaint(s) before. |
Right now we only create the
deno:deno
user in the Dockerfile, but it is up to the user to add theUSER deno:deno
directive to their Dockerfiles. I think it would be beneficial to add that directive to the images so that it becomes the default behavior and running as root becomes a conscious choice.The text was updated successfully, but these errors were encountered: