Skip to content

Instantly share code, notes, and snippets.

@netj
Created July 14, 2016 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netj/a2c8c8a4c68f5189d3c28e2aec27a8be to your computer and use it in GitHub Desktop.
Save netj/a2c8c8a4c68f5189d3c28e2aec27a8be to your computer and use it in GitHub Desktop.
RUN adduser --disabled-password --gecos "" user \
&& adduser user adm \
&& bash -c "echo '%adm ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers"
USER user
ENV USER=user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment