Created
May 12, 2020 14:35
-
-
Save phelewski/c2c65f79ca82a4d5b89d23ee3b4c3b47 to your computer and use it in GitHub Desktop.
Visual Studios Code Remote - Container Blog | Example non-root User
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
ARG USERNAME=cfn_nag_dev | |
ARG USER_UID=1000 | |
ARG USER_GID=$USER_UID | |
RUN groupadd --gid $USER_GID $USERNAME \ | |
&& useradd --uid $USER_UID --gid $USER_GID --shell /bin/bash -m $USERNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment