From ad89a95a707119cc45cfca0d12dca0faf7fe91d9 Mon Sep 17 00:00:00 2001 From: Georgi Panov <77702912+Darkfella91@users.noreply.github.com> Date: Mon, 18 Nov 2024 02:11:49 +0200 Subject: [PATCH] Update Dockerfile --- .devcontainer/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 4051fa631..3980999ff 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -22,10 +22,9 @@ RUN apk add --no-cache \ libstdc++ \ direnv \ unzip && \ - { echo ''; echo 'eval "$(direnv hook bash)"'; } >> /root/.bashrc && \ - cat /root/.bashrc && \ addgroup -g $USER_GID $USERNAME && \ adduser -u $USER_UID -G $USERNAME -s /bin/sh -D $USERNAME && \ + echo 'eval "$(direnv hook bash)"' >> /home/$USERNAME/.bashrc && \ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" && \ echo "$(cat kubectl.sha256) kubectl" | sha256sum --check --strict && \