Skip to content

Instantly share code, notes, and snippets.

@Zalgo2462
Created January 31, 2018 00:24
Show Gist options
  • Save Zalgo2462/2e9fb36e20ec589d96727e45f7f22977 to your computer and use it in GitHub Desktop.
Save Zalgo2462/2e9fb36e20ec589d96727e45f7f22977 to your computer and use it in GitHub Desktop.
ubuntu-user:16.04
# docker built -t ubuntu-user:16.04 .
FROM ubuntu:16.04
RUN apt-get update && apt-get install sudo && \
useradd -m -s /bin/bash user && \
echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user
RUN apt-get -y install git
USER user
WORKDIR /home/user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment