From 6b1b9b98dc75c370a5dbe1db40e0e2d1895106d5 Mon Sep 17 00:00:00 2001 From: Aison Date: Wed, 7 Feb 2024 23:30:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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