SoUmNerd commited on
Commit
02672e3
1 Parent(s): 4065676

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -69,7 +69,11 @@ WORKDIR /app
69
  # Create a non-root user and switch to it
70
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
71
  && chown -R user:user /app
72
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
 
 
 
 
73
  USER user
74
 
75
  # All users can use /home/user as their home directory
 
69
  # Create a non-root user and switch to it
70
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
71
  && chown -R user:user /app
72
+
73
+ # Configura a senha do usuário user como "teste123"
74
+ RUN echo 'user:teste123' | chpasswd
75
+ RUN usermod -aG sudo user
76
+
77
  USER user
78
 
79
  # All users can use /home/user as their home directory