From 091144a328ea9ed8ae4f009223953a96970513ef Mon Sep 17 00:00:00 2001 From: Aison Date: Thu, 8 Feb 2024 11:37:29 +0800 Subject: [PATCH] change to env --- .devcontainer/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2f37b17..606ae46 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,6 @@ FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye -ARG USER=node -RUN id -u &> /dev/null || useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \ +ENV USER=node +RUN id -u ${USER} &> /dev/null || useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \ && echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \ && chmod 0440 /etc/sudoers.d/${USER} RUN sh -c "$(curl -fsSL https://starship.rs/install.sh)" -y -f && echo 'eval "$(starship init bash)"' >> /home/${USER}/.bashrc