Skip to content

Commit

Permalink
fix: make vscode user creation idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Nov 4, 2023
1 parent 93384bd commit 95774fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ RUN curl -fsSL https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz \
ln -s /usr/local/go/bin/* /usr/local/bin/


# Create a codespace user with uid 1000
# Create a vscode user with uid 1000 (this user may already exist)
RUN useradd \
--create-home \
--shell /bin/zsh \
--uid 1000 \
--gid 1000 \
--non-unique \
"${USER}"
"${USER}" || true

# Set the shell to zsh
RUN chsh --shell "/usr/bin/zsh" "${USER}"
Expand Down

0 comments on commit 95774fb

Please sign in to comment.