Skip to content

Commit

Permalink
feat: enable sudo usage
Browse files Browse the repository at this point in the history
  • Loading branch information
salzig committed Sep 26, 2024
1 parent 2a96f31 commit a0c007b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ ARG defaultpassword=love
ARG hostname=rubynrails

RUN apt-get update
RUN apt-get install -y curl git
RUN apt-get install -y curl git sudo
RUN apt clean
RUN adduser $defaultuser
RUN adduser $defaultuser sudo
RUN echo "${defaultuser}:${defaultpassword}" | chpasswd
RUN echo "[user]\ndefault=$defaultuser\nhostname=$hostname" >> /etc/wsl.conf

Expand Down

0 comments on commit a0c007b

Please sign in to comment.