Skip to content

Commit

Permalink
added user and group
Browse files Browse the repository at this point in the history
  • Loading branch information
hadirgax committed Mar 29, 2024
1 parent b99da25 commit d6512d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions devcontainer_images/src/miniconda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ ENV PATH /opt/conda/bin:$PATH

ARG USERNAME=devcon
ARG USER_HOME="/home/${USERNAME}"
RUN groupadd $USERNAME && \
useradd -s /bin/bash --gid ${USERNAME} -m ${USERNAME} && \
echo ${USERNAME} ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/${USERNAME} && \
chmod 0440 /etc/sudoers.d/${USERNAME}
RUN groupadd --gid 1000 ${USERNAME} && useradd -s /bin/bash --gid 1000 -m ${USERNAME}

RUN OMZ_DIR=${USER_HOME}/.oh-my-zsh && \
umask g-w,o-w && \
Expand Down

0 comments on commit d6512d3

Please sign in to comment.