samarth-ht commited on
Commit
1910dcc
·
1 Parent(s): b946ae7

fix: update Dockerfile to allow user to run rm command without password

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -20,7 +20,7 @@ RUN useradd -m -u 1000 hyathi
20
  RUN apt update -y && apt install -y sudo
21
 
22
  # Allow the user to run apt commands without a password prompt by modifying sudoers file
23
- RUN echo "hyathi ALL=(ALL) NOPASSWD: /usr/bin/apt" >> /etc/sudoers
24
 
25
  # Switch to the new user
26
  USER hyathi
 
20
  RUN apt update -y && apt install -y sudo
21
 
22
  # Allow the user to run apt commands without a password prompt by modifying sudoers file
23
+ RUN echo "hyathi ALL=(ALL) NOPASSWD: /usr/bin/apt, /bin/rm" >> /etc/sudoers
24
 
25
  # Switch to the new user
26
  USER hyathi