Created
March 22, 2018 17:27
-
-
Save Zalgo2462/1c20ed7c2b83db699090ebdd28c302d3 to your computer and use it in GitHub Desktop.
centos-user:7
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 build -t centos-user:7 | |
FROM centos:7 | |
RUN yum -y upgrade | |
RUN yum -y install git | |
RUN yum -y install sudo && \ | |
useradd -m -s /bin/bash user && \ | |
echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \ | |
chmod 0440 /etc/sudoers.d/user | |
USER user | |
WORKDIR /home/user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment