Skip to content

Commit

Permalink
Use "ubuntu" username instead of vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
BerriJ committed Oct 2, 2024
1 parent 7e3dbdc commit cbb115b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ SHELL ["/bin/bash", "-c"]
ENV DISPLAY=:0 \
TZ=Europe/Berlin

ARG USERNAME=vscode
ARG USERNAME=ubuntu
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ARG DEBIAN_FRONTEND=noninteractive

# Rename ubuntu user to $USERNAME
RUN usermod -l $USERNAME ubuntu \
# Add new group called $USERNAME
&& groupadd $USERNAME \
# Add new user $USERNAME to the groups $USERNAME and staff
&& usermod -a -G staff,$USERNAME $USERNAME
# Add ubuntu user to ubuntu and staff groups
RUN usermod -a -G staff,$USERNAME $USERNAME

# Create folders to mount extensions
RUN mkdir -p /home/$USERNAME/.vscode-server/extensions \
Expand Down

0 comments on commit cbb115b

Please sign in to comment.