Created
January 31, 2018 00:24
-
-
Save Zalgo2462/2e9fb36e20ec589d96727e45f7f22977 to your computer and use it in GitHub Desktop.
ubuntu-user:16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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