edwagbb commited on
Commit
f387a1c
·
verified ·
1 Parent(s): 44b4894

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -8,7 +8,7 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/*
8
  RUN echo "admin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
9
  COPY su.sh /home/admin/su.sh
10
  RUN chown -R 1000 /home && chmod -R 700 /home && chmod +x /home/admin/su.sh
11
- RUN chown -R 1001 /home && chmod u+s /usr/bin/whoami
12
  USER admin
13
  WORKDIR /home/admin
14
  CMD /usr/bin/whoami && pwd && ls && (/home/admin/su.sh nonrootuser password whoami)
 
8
  RUN echo "admin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
9
  COPY su.sh /home/admin/su.sh
10
  RUN chown -R 1000 /home && chmod -R 700 /home && chmod +x /home/admin/su.sh
11
+ RUN chown -R 1001 /usr/bin/whoami && chmod u+s /usr/bin/whoami
12
  USER admin
13
  WORKDIR /home/admin
14
  CMD /usr/bin/whoami && pwd && ls && (/home/admin/su.sh nonrootuser password whoami)