robocan commited on
Commit
d665dd3
·
1 Parent(s): cc64522

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -36,7 +36,11 @@ WORKDIR /app
36
  # Create a non-root user and switch to it
37
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
38
  && chown -R user:user /app
39
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
 
 
 
 
40
  USER user
41
 
42
  # All users can use /home/user as their home directory
 
36
  # Create a non-root user and switch to it
37
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
38
  && chown -R user:user /app
39
+
40
+ # Allow the user full sudo access without password
41
+ RUN echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/90-user
42
+
43
+
44
  USER user
45
 
46
  # All users can use /home/user as their home directory