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

Runs as root #3

Open
keiranmraine opened this issue Sep 11, 2017 · 0 comments
Open

Runs as root #3

keiranmraine opened this issue Sep 11, 2017 · 0 comments

Comments

@keiranmraine
Copy link

keiranmraine commented Sep 11, 2017

Unless I'm missing some other way to change the executing user the Dockerfile should be updated to include the following before the CMD directive:

RUN adduser --disabled-password --gecos '' ubuntu && chsh -s /bin/bash && mkdir -p /home/ubuntu
USER    ubuntu
WORKDIR /home/ubuntu

Makes for happier admins.

(if I have time I'll create, test and do a PR for this, but will probably be next week)

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

No branches or pull requests

1 participant