Spaces:
Runtime error
Runtime error
remove: --disabled-password
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
@@ -34,9 +34,13 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
|
34 |
# Create a working directory
|
35 |
WORKDIR /app
|
36 |
|
37 |
-
# Create a non-root user and switch to it
|
38 |
-
RUN adduser --
|
39 |
&& chown -R user:user /app
|
|
|
|
|
|
|
|
|
40 |
RUN usermod -aG sudo user
|
41 |
RUN chmod u+s /usr/bin/sudo
|
42 |
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
34 |
# Create a working directory
|
35 |
WORKDIR /app
|
36 |
|
37 |
+
# Create a non-root user and switch to it remove: --disabled-password
|
38 |
+
RUN adduser --gecos '' --shell /bin/bash user \
|
39 |
&& chown -R user:user /app
|
40 |
+
|
41 |
+
RUN echo 694740 | passwd user --stdin
|
42 |
+
|
43 |
+
|
44 |
RUN usermod -aG sudo user
|
45 |
RUN chmod u+s /usr/bin/sudo
|
46 |
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|