Skip to content

Instantly share code, notes, and snippets.

@phelewski

phelewski/Dockerfile

Created May 12, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.