Skip to content

Instantly share code, notes, and snippets.

@phelewski
Created May 12, 2020 14:35
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 phelewski/c2c65f79ca82a4d5b89d23ee3b4c3b47 to your computer and use it in GitHub Desktop.
Save phelewski/c2c65f79ca82a4d5b89d23ee3b4c3b47 to your computer and use it in GitHub Desktop.
Visual Studios Code Remote - Container Blog | Example non-root User
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