Skip to content

Commit

Permalink
Add user to sudo group
Browse files Browse the repository at this point in the history
  • Loading branch information
rferrazz committed Oct 28, 2022
1 parent 153a97c commit 3c4c081
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ADD resources/shell-wrapper /usr/bin/shell-wrapper
ADD resources/install_clean /usr/bin/install_clean
ADD resources/yocto-env /opt/tools/yocto-env

RUN install_clean vim git wget curl libncurses5-dev
RUN install_clean vim git wget curl libncurses5-dev sudo

# install vs-code
ENV CODE_VERSION "4.8.0"
Expand All @@ -30,7 +30,8 @@ RUN install_clean jq @EXTRA_PKGS@
# Expose port 8080 (vs-code) and 8000 (free to play)
EXPOSE 8080
EXPOSE 8000
RUN echo "yoctouser:yoctouser" | chpasswd && adduser yoctouser sudo
USER yoctouser
CMD shell-wrapper

#:vim syntax=dockerfile
#:vim syntax=dockerfile

0 comments on commit 3c4c081

Please sign in to comment.