Spaces:
Running
Running
Commit
·
1ee423c
1
Parent(s):
44dd441
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -29,6 +29,9 @@ RUN if [ -z "$USER_ID" ]; then \
|
|
29 |
adduser --uid "$USER_ID" --disabled-password --gecos '' "$USER_GROUP"; \
|
30 |
fi
|
31 |
|
|
|
|
|
|
|
32 |
# Set appropriate permissions for the application directory
|
33 |
RUN chown -R "$USER_ID:$USER_GROUP" /app && chmod -R 755 /app
|
34 |
|
|
|
29 |
adduser --uid "$USER_ID" --disabled-password --gecos '' "$USER_GROUP"; \
|
30 |
fi
|
31 |
|
32 |
+
# Add the user to the sudo group
|
33 |
+
RUN usermod -aG sudo appuser
|
34 |
+
|
35 |
# Set appropriate permissions for the application directory
|
36 |
RUN chown -R "$USER_ID:$USER_GROUP" /app && chmod -R 755 /app
|
37 |
|