From cde2fdedaa12d6b4b4ec97c85d345251a064d289 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 18 Sep 2021 13:15:00 -0300 Subject: [PATCH] Containerfile: permitirle sudo a suttier --- Containerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index 6344101..1308963 100644 --- a/Containerfile +++ b/Containerfile @@ -1,6 +1,6 @@ FROM docker.io/alpine:3.13 -RUN apk add --no-cache openssh-client make git bash coreutils diffutils +RUN apk add --no-cache openssh-client make git bash coreutils diffutils sudo RUN echo "https://alpine.sutty.nl/alpine/v3.13/sutty" >> "/etc/apk/repositories" && \ wget https://alpine.sutty.nl/alpine/sutty.pub -O "/etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub" @@ -15,7 +15,8 @@ RUN mkdir -p /home && \ --disabled-password \ --gecos "" \ --home /home/suttier \ - suttier + suttier && \ + echo "suttier ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers USER suttier COPY .gemrc /home/suttier/.gemrc