diff --git a/ubuntu/16.04/Dockerfile b/ubuntu/16.04/Dockerfile index 94573fa6..9d646c5f 100644 --- a/ubuntu/16.04/Dockerfile +++ b/ubuntu/16.04/Dockerfile @@ -44,4 +44,8 @@ RUN echo 'APT::Install-Recommends 0;' >> /etc/apt/apt.conf.d/01norecommends \ COPY ./etc/ /etc/ COPY ./usr/ /usr/ -CMD ["/usr/local/bin/container", "start_supervisord"] +RUN chown -R root:root /etc/sudoers.d/ + +USER build + +CMD ["/usr/bin/sudo", "/usr/local/bin/container", "start_supervisord"] diff --git a/ubuntu/16.04/etc/sudoers.d/build b/ubuntu/16.04/etc/sudoers.d/build new file mode 100644 index 00000000..e0f21f01 --- /dev/null +++ b/ubuntu/16.04/etc/sudoers.d/build @@ -0,0 +1 @@ +build ALL = (ALL) NOPASSWD: ALL