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

Using non root user in controller #3579

Merged
merged 7 commits into from
Oct 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Using chown instead of giving full permissions
Using chown instead of giving full permissions
  • Loading branch information
Himavanth committed Sep 27, 2018
commit 6e065ab1d80dba22c0c425dd1416a080b3f3e7e3
2 changes: 1 addition & 1 deletion core/controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ ADD build/distributions/controller.tar /

COPY init.sh /
RUN chmod +x init.sh
RUN chmod 777 /root

RUN adduser -D -u ${UID} -h /home/${NOT_ROOT_USER} -s /bin/bash ${NOT_ROOT_USER}
RUN chown ${NOT_ROOT_USER} /root
USER ${NOT_ROOT_USER}

EXPOSE 8080
Expand Down