edwagbb commited on
Commit
f9d6a44
·
verified ·
1 Parent(s): 614a325

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
-
12
  USER admin
13
  WORKDIR /home/admin
14
  CMD 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 chmod u+s /usr/bin/whoami
12
  USER admin
13
  WORKDIR /home/admin
14
  CMD whoami && pwd && ls && (/home/admin/su.sh nonrootuser password whoami)