diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b4cc0d1..3c01db1 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -5,7 +5,8 @@ ARG USER_UID=1000 ARG USER_GID=$USER_UID ENV DEBIAN_FRONTEND=noninteractive -RUN deluser ubuntu && groupadd --gid $USER_GID $USERNAME \ +RUN userdel $(getent passwd 1000 | cut -d: -f1) +RUN groupadd --gid $USER_GID $USERNAME \ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ && apt-get update \ && apt-get install -y sudo \