Containerfile: permitirle sudo a suttier
All checks were successful
continuous-integration/drone the build was successful
All checks were successful
continuous-integration/drone the build was successful
This commit is contained in:
parent
45b3ff8741
commit
cde2fdedaa
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
FROM docker.io/alpine:3.13
|
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" && \
|
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"
|
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 \
|
--disabled-password \
|
||||||
--gecos "" \
|
--gecos "" \
|
||||||
--home /home/suttier \
|
--home /home/suttier \
|
||||||
suttier
|
suttier && \
|
||||||
|
echo "suttier ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
USER suttier
|
USER suttier
|
||||||
|
|
||||||
COPY .gemrc /home/suttier/.gemrc
|
COPY .gemrc /home/suttier/.gemrc
|
||||||
|
|
Loading…
Reference in a new issue