diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8cac3a3..5a12c2d 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,5 +1,5 @@ FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye -RUN useradd --groups sudo --no-create-home --shell /bin/bash node \ +RUN id -u node &> /dev/null || useradd --groups sudo --no-create-home --shell /bin/bash node \ && echo "node ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/node \ && chmod 0440 /etc/sudoers.d/node RUN sh -c "$(curl -fsSL https://starship.rs/install.sh)" -y -f && echo 'eval "$(starship init bash)"' >> /home/node/.bashrc