Skip to content

Added a non root user - #258

Merged
chorrell merged 1 commit into
nodejs:masterfrom
LaurentGoderre:add-user
Nov 3, 2016
Merged

chorrell merged 1 commit into
nodejs:masterfrom
LaurentGoderre:add-user

Conversation

@LaurentGoderre

Copy link
Copy Markdown
Member

Allows running non-root commands (such as npm). Fixes #253

Allows running non-root commands (such as npm). Fixes nodejs#253
pesho

This comment was marked as off-topic.

@chorrell

Copy link
Copy Markdown
Contributor

LGTM

@chorrell

chorrell commented Nov 3, 2016

Copy link
Copy Markdown
Contributor

If everyone is good with this I'll merge it later today.

@chorrell
chorrell merged commit 24d6266 into nodejs:master Nov 3, 2016
@chorrell

chorrell commented Nov 3, 2016

Copy link
Copy Markdown
Contributor

I'm going to do a follow up PR to update the docker files then do a PR to the Docker Hub.

@styfle

styfle commented Jan 3, 2017 •

Copy link
Copy Markdown
Member

@LaurentGoderre I noticed that the alpine template already the node user but not the node group. The user doesn't seem to be global.

RUN adduser -D -u 1000 node instead of the expected RUN addgroup -S node && adduser -S -g node node to match the debian logic.

Should the alpine template be modified too? (for reference, see Best Practices)

@LaurentGoderre

Copy link
Copy Markdown
Member Author

@styfle Can you create a new issue for this? I initiated a bunch of these things but with input with the community

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 this pull request may close these issues.

4 participants