Skip to content

Commit

Permalink
Merge pull request #54 from farribeiro/create-new-user
Browse files Browse the repository at this point in the history
Trocar forma de criar usuário
  • Loading branch information
farribeiro authored Aug 2, 2018
2 parents 1d9b1c3 + d7a44b9 commit 2ad9c2f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
FROM debian:stretch-slim
LABEL maintainer "Fabio Rodrigues Ribeiro <[email protected]>"

ENV USER=ff
ENV GUID=1000

ADD https://cloud.gastecnologia.com.br/gas/diagnostico/warsaw-setup-ubuntu_64.deb /src/warsaw.deb
COPY startup.sh /home/ff/

Expand Down Expand Up @@ -38,10 +41,11 @@ RUN apt-get update \
xauth \
zenity \
--no-install-recommends \
&& groupadd -g 1000 -r ff \
&& useradd -u 1000 -r -g ff -G audio,video ff -d /home/ff \
&& mkdir -p /home/${USER} \
&& chmod 744 /home/ff/startup.sh \
&& chown -R ff:ff /home/ff \
&& groupadd -g ${GUID} -r ${USER} \
&& useradd -u ${GUID} -r -g ${USER} -G audio,video ${USER} -d /home/${USER} \
&& chown -R ${GUID}:${GUID} /home/${USER} \
&& echo 'ff ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \
&& echo 'Defaults !requiretty' >> /etc/sudoers \
&& echo root:wscef | chpasswd \
Expand Down

0 comments on commit 2ad9c2f

Please sign in to comment.