Merge pull request #29 from devindice/Cloud9-Change

Fixed user
This commit is contained in:
Devin Dice 2022-12-21 13:23:02 -05:00 committed by GitHub
commit 665c0f1a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -179,9 +179,10 @@ COPY rootfs /
RUN rm -rf /workspace/*
RUN useradd -u 99 -G sudo -ms /bin/bash ubuntu
RUN useradd -d /home/ubuntu -u 99 -G sudo -ms /bin/bash ubuntu
#RUN adduser ubuntu sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN chown ubuntu:ubuntu /home/ubuntu
# Install from user (not doing)
USER ubuntu