From 3aa48e9edafa9f7d89c44f9e668fa2bb1a167fb0 Mon Sep 17 00:00:00 2001 From: Devin Dice Date: Wed, 11 Jan 2023 15:49:48 -0500 Subject: [PATCH 1/2] Modifying docker file --- Dockerfile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8e8b0dd..f5a493b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,7 +112,10 @@ RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirr RUN apt-get update \ - && apt-get install -y --no-install-recommends curl ca-certificates gnupg patch + && apt-get install -y --no-install-recommends ca-certificates + +RUN apt-get update \ + && apt-get install -y --no-install-recommends curl gnupg patch # nodejs RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \ @@ -177,3 +180,17 @@ RUN apt -y remove thunar # Copy files COPY rootfs / RUN rm -rf /workspace/* + + +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 +CMD /bin/bash + +RUN bash /cloud9/user-install.sh + +user root \ No newline at end of file From 88df4e4eed4f85d48f6c0fc3bda0bc464e816582 Mon Sep 17 00:00:00 2001 From: Devin Dice Date: Wed, 11 Jan 2023 15:53:26 -0500 Subject: [PATCH 2/2] Modifying docker file --- Dockerfile | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index f5a493b..e0b8eb9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -180,17 +180,3 @@ RUN apt -y remove thunar # Copy files COPY rootfs / RUN rm -rf /workspace/* - - -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 -CMD /bin/bash - -RUN bash /cloud9/user-install.sh - -user root \ No newline at end of file