Skip to content

Commit

Permalink
chore: Use bash as the default shell for the non-root user in devcont…
Browse files Browse the repository at this point in the history
…ainer. (#285)
  • Loading branch information
huxuan committed Jan 26, 2024
1 parent 56cc109 commit 49c8e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/prebuild/.devcontainer/Dockerfile
Expand Up @@ -30,7 +30,7 @@ ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --create-home --uid $USER_UID --gid $USER_GID $USERNAME \
&& useradd --create-home --uid $USER_UID --gid $USER_GID $USERNAME -s /bin/bash \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME

Expand Down
Expand Up @@ -30,7 +30,7 @@ ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --create-home --uid $USER_UID --gid $USER_GID $USERNAME \
&& useradd --create-home --uid $USER_UID --gid $USER_GID $USERNAME -s /bin/bash \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME

Expand Down

0 comments on commit 49c8e12

Please sign in to comment.