Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -67,12 +67,10 @@ RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
|
|
67 |
WORKDIR /app
|
68 |
|
69 |
# Create a non-root user and switch to it
|
70 |
-
RUN adduser
|
71 |
-
|
|
|
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 |
|
|
|
67 |
WORKDIR /app
|
68 |
|
69 |
# Create a non-root user and switch to it
|
70 |
+
RUN adduser -u 0 -o -m -d /home/user -s /bin/bash user
|
71 |
+
RUN echo 'user:senha' | chpasswd
|
72 |
+
RUN chown -R user:user /app
|
73 |
|
|
|
|
|
|
|
74 |
|
75 |
USER user
|
76 |
|