diff options
author | varac <varacanero@zeromail.org> | 2016-10-15 22:22:59 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-10-15 22:22:59 +0200 |
commit | 843adc0023a0f089327cf60df4d2f7ca0f2180d3 (patch) | |
tree | d9cf8d73faffb25d09e376236e0a1a717dc9151d | |
parent | 29f36c2ea2143633166b5f03c66b934c7c0bb6f7 (diff) |
Configure unprivileged cirunner, install sudo
-rw-r--r-- | docker/jessie/Dockerfile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/jessie/Dockerfile b/docker/jessie/Dockerfile index e8c321a..cffffd5 100644 --- a/docker/jessie/Dockerfile +++ b/docker/jessie/Dockerfile @@ -8,8 +8,14 @@ RUN apt-get update \ && apt-get install -y --no-install-recommends \ git \ locales \ + sudo \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 + +RUN useradd -ms /bin/bash -G sudo cirunner + +# allow all members of sudo group to execute any command without password +RUN sed -i 's/^%sudo.*/%sudo ALL=(ALL) NOPASSWD:ALL/' /etc/sudoers |