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