Update Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
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
|